{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 高德API所有功能练习"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> *准备工作（先输入一些相同的参数，便以之后的代码简化）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests,json\n",
    "import pandas as pd\n",
    "key = 'ac1c16d9ba930c1f889b26fb9a392c2f'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 地理编码\n",
    "> * 介绍：地理编码/逆地理编码 API 是通过 HTTP/HTTPS 协议访问远程服务的接口，提供结构化地址与经纬度之间的相互转化的能力\n",
    "> * 结构化地址的定义： \n",
    "首先，地址肯定是一串字符，内含国家、省份、城市、区县、城镇、乡村、街道、门牌号码、屋邨、大厦等建筑物名称。按照由大区域名称到小区域名称组合在一起的字符。一个有效的地址应该是独一无二的。注意：针对大陆、港、澳地区的地理编码转换时可以将国家信息选择性的忽略，但省、市、城镇等级别的地址构成是不能忽略的。暂时不支持返回台湾省的详细地址信息。\n",
    "\n",
    "> * 关于代码内容：\n",
    "> * 请求url：https://restapi.amap.com/v3/geocode/geo?parameters\n",
    "> * 其他可选参数详见：[地理编码](https://lbs.amap.com/api/webservice/guide/api/georegeo)\n",
    "> * 必选参数params：key、address\n",
    "> * 请求方式：GET方法：get（）\n",
    "> *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "address ='广东省广州市从化区从化大道882号中山大学南方学院'\n",
    "# 运用函数\n",
    "def geo(key,address):  #记得打冒号！！！\n",
    "    url_geo = 'https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params_geo = {\n",
    "        \"key\":key,\n",
    "        \"address\":address,\n",
    "        \"output\":\"json\"\n",
    "    }\n",
    "    r = requests.get(url= url_geo,params=params_geo)\n",
    "    return r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区中山大学南方学院',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.679287,23.632575',\n",
       "   'level': '兴趣点'}]}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo(key,address)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo(key,address)['geocodes'][0]['location'] #取出我们中大南方的地理坐标"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 逆地理编码\n",
    "> * url:'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "> * 必填参数：key,location\n",
    "> * 更多参数可参考文档[高德逆地理编码](https://lbs.amap.com/api/webservice/guide/api/georegeo#regeo)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "address ='广东省广州市从化区从化大道882号中山大学南方学院'\n",
    "address2 ='广东省广州市从化区龙岗镇'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "中大南方_location=geo(key,address)['geocodes'][0]['location']\n",
    "中大南方_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [],
   "source": [
    "#嵌入逆地理编码函数：regeo函数\n",
    "def regeo(key,location,extensions=\"base\",radius=None,poitype=None):\n",
    "    \"\"\"\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"location\":location,\n",
    "        \"extensions\":extensions,\n",
    "        \"radius\":radius,\n",
    "        \"poitype\":poitype\n",
    "    }\n",
    "    r = requests.get(url,params)\n",
    "    results = r.json()\n",
    "    return results\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117103000',\n",
       "   'streetNumber': {'number': '7号',\n",
       "    'location': '113.678600,23.633329',\n",
       "    'direction': '西北',\n",
       "    'distance': '109.203',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院'},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeo(key,location=中大南方_location,extensions='base')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#定义r：\n",
    "url = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "params = {\n",
    "    \"key\":key,\n",
    "    \"location\":中大南方_location,\n",
    "    \"extensions\":\"all\"\n",
    "}\n",
    "r = requests.get(url,params)\n",
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<bound method Response.json of <Response [200]>>"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>020F49F0050461203</td>\n",
       "      <td>113.68,23.634</td>\n",
       "      <td>南</td>\n",
       "      <td>博学路</td>\n",
       "      <td>156.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>020F49F0050462451</td>\n",
       "      <td>113.677,23.6347</td>\n",
       "      <td>东南</td>\n",
       "      <td>中山路</td>\n",
       "      <td>343.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>020F49F006047765</td>\n",
       "      <td>113.682,23.6394</td>\n",
       "      <td>南</td>\n",
       "      <td>S29从莞深高速</td>\n",
       "      <td>807.947</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                  id         location direction      name distance\n",
       "0  020F49F0050461203    113.68,23.634         南       博学路  156.951\n",
       "1  020F49F0050462451  113.677,23.6347        东南       中山路  343.951\n",
       "2   020F49F006047765  113.682,23.6394         南  S29从莞深高速  807.947"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#抽取数据+利用pandas表格化\n",
    "pd.json_normalize(r.json()['regeocode']['roads'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['博学路', '中山路', 'S29从莞深高速']"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#练习：在大量数据的列表中调取我们需要的信息到另一个列表？\n",
    "_roads_ = []\n",
    "for item in r.json()['regeocode']['roads']:\n",
    "    _roads_.append(item['name'])\n",
    "_roads_"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 路径规划\n",
    "> * 产品介绍：路径规划API是一套以HTTP形式提供的步行、公交、驾车查询及行驶距离计算接口，返回JSON 或 XML格式的查询数据，用于实现路径规划功能的开发。 由于道路/数据/算法的变更，很可能存在间隔一段时间后请求相同起终点的经纬度返回不同结果。\n",
    "> * 适用场景：无需展现地图的场景下，进行线路查询，如以线路结果页形式展现换乘方案；根据返回线路数据，自行开发线路导航。\n",
    "\n",
    "> 代码步骤：\n",
    "* 定义步行/公交车/驾车新函数 \n",
    "* 数据准备、命名\n",
    "* 地点的地理编码获取（调用geocode函数）\n",
    "* 调用新函数（json可视化）\n",
    "* 利用pd.json_normalize 对数据进行提取\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### location地理编码定义：geocode函数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 地理编码 =》 函数形式\n",
    "def geocode(key,address,city=None,batch=None):\n",
    "    \"\"\"  \"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"address\":address,\n",
    "        \"city\":city,\n",
    "        \"batch\":batch\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()['geocodes'][0]['location']\n",
    "    # 返回值\n",
    "    return results\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on function geocode in module __main__:\n",
      "\n",
      "geocode(key, address, city=None, batch=None)\n",
      "    # 地理编码 =》 函数形式\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(geocode)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 步行\n",
    "\n",
    "> * 代码内容：\n",
    "> * url：'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "> * 必填参数：key，origin，destination 其他可选参数详见：[步行路径](https://lbs.amap.com/api/webservice/guide/api/direction#walk)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "#定义walk函数\n",
    "def walk(key,origin,destination):#不要忘记打冒号\n",
    "    walk_url ='https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination\n",
    "    }\n",
    "    response = requests.get(walk_url,params=params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "#数据准备\n",
    "origin='广州市从化区中山大学南方学院'\n",
    "destination='广州市从化区龙岗'\n",
    "city = '广州'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "113.679287,23.632575\n",
      "113.668051,23.600869\n"
     ]
    }
   ],
   "source": [
    "#调用geocode函数\n",
    "walk_origin = geocode(key,origin)\n",
    "walk_destination = geocode(key,destination)\n",
    "print(walk_origin)\n",
    "print(walk_destination)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'roads': [{'id': '020F49F0050461203',\n",
       "   'location': '113.68,23.634',\n",
       "   'direction': '南',\n",
       "   'name': '博学路',\n",
       "   'distance': '156.951'},\n",
       "  {'id': '020F49F0050462451',\n",
       "   'location': '113.677,23.6347',\n",
       "   'direction': '东南',\n",
       "   'name': '中山路',\n",
       "   'distance': '343.951'},\n",
       "  {'id': '020F49F006047765',\n",
       "   'location': '113.682,23.6394',\n",
       "   'direction': '南',\n",
       "   'name': 'S29从莞深高速',\n",
       "   'distance': '807.947'}],\n",
       " 'roadinters': [{'second_name': '中山路',\n",
       "   'first_id': '020F49F0050461203',\n",
       "   'second_id': '020F49F0050462451',\n",
       "   'location': '113.676794,23.634661',\n",
       "   'distance': '343.951',\n",
       "   'first_name': '博学路',\n",
       "   'direction': '东南'}],\n",
       " 'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院',\n",
       " 'addressComponent': {'city': '广州市',\n",
       "  'province': '广东省',\n",
       "  'adcode': '440117',\n",
       "  'district': '从化区',\n",
       "  'towncode': '440117103000',\n",
       "  'streetNumber': {'number': '7号',\n",
       "   'location': '113.678600,23.633329',\n",
       "   'direction': '西北',\n",
       "   'distance': '109.203',\n",
       "   'street': '博学路'},\n",
       "  'country': '中国',\n",
       "  'township': '温泉镇',\n",
       "  'businessAreas': [[]],\n",
       "  'building': {'name': [], 'type': []},\n",
       "  'neighborhood': {'name': [], 'type': []},\n",
       "  'citycode': '020'},\n",
       " 'aois': [{'area': '536585.849985',\n",
       "   'type': '141201',\n",
       "   'id': 'B00140MR9A',\n",
       "   'location': '113.679262,23.632583',\n",
       "   'adcode': '440117',\n",
       "   'name': '中山大学南方学院',\n",
       "   'distance': '0'}],\n",
       " 'pois': [{'id': 'B00140MR9A',\n",
       "   'direction': '西',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.450402',\n",
       "   'name': '中山大学南方学院',\n",
       "   'location': '113.679262,23.632583',\n",
       "   'distance': '2.69979',\n",
       "   'tel': '020-61787331',\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0FFF2VMJ4',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道886号中山大学南方学院内',\n",
       "   'poiweight': '0.148531',\n",
       "   'name': '中山大学南方学院-综合楼',\n",
       "   'location': '113.680117,23.631544',\n",
       "   'distance': '142.466',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;学校'},\n",
       "  {'id': 'B0FFFTC9PH',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '从莞深高速(中山大学南方学院)',\n",
       "   'poiweight': '0.193172',\n",
       "   'name': '中山大学南方学院教学楼10号',\n",
       "   'location': '113.680125,23.633492',\n",
       "   'distance': '132.988',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B00141TQKX',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882',\n",
       "   'poiweight': '0.148531',\n",
       "   'name': '中山大学南方学院教学楼6号',\n",
       "   'location': '113.678424,23.633710',\n",
       "   'distance': '153.818',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;学校'},\n",
       "  {'id': 'B00141TQGR',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路7',\n",
       "   'poiweight': '0.148531',\n",
       "   'name': '中山大学南方学院教学楼7号',\n",
       "   'location': '113.678600,23.633330',\n",
       "   'distance': '109.298',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B00141WQCO',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路',\n",
       "   'poiweight': '0.14954',\n",
       "   'name': '中山大学南方学院教学楼8号',\n",
       "   'location': '113.680399,23.634329',\n",
       "   'distance': '225.543',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0FFG9IORM',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号中山大学南方学院内',\n",
       "   'poiweight': '0.287887',\n",
       "   'name': '中山大学南方学院-图书馆',\n",
       "   'location': '113.679177,23.632762',\n",
       "   'distance': '23.6163',\n",
       "   'tel': '020-61787368;020-61787371',\n",
       "   'type': '科教文化服务;图书馆;图书馆'},\n",
       "  {'id': 'B0FFKP9EQJ',\n",
       "   'direction': '东',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路附近',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '中山大学南方学院4号实验楼',\n",
       "   'location': '113.679963,23.632652',\n",
       "   'distance': '69.4077',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0FFJKIA10',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号中山大学南方学院',\n",
       "   'poiweight': '0.191691',\n",
       "   'name': '中山大学南方学院-第11教学楼',\n",
       "   'location': '113.680037,23.633173',\n",
       "   'distance': '101.294',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B00141TRVH',\n",
       "   'direction': '西南',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路21',\n",
       "   'poiweight': '0.148531',\n",
       "   'name': '中山大学南方学院教学楼2号',\n",
       "   'location': '113.677060,23.631346',\n",
       "   'distance': '264.846',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0FFKERBQZ',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路7号附近',\n",
       "   'poiweight': '0.289141',\n",
       "   'name': '中山大学南方学院惟贤门',\n",
       "   'location': '113.678437,23.633721',\n",
       "   'distance': '154.082',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0FFKP81F4',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '中山路',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '政商研究院教学楼9号',\n",
       "   'location': '113.679949,23.633919',\n",
       "   'distance': '163.951',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0FFKP9ET5',\n",
       "   'direction': '西南',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路附近',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '中山大学南方学院1号实验楼',\n",
       "   'location': '113.678215,23.631370',\n",
       "   'distance': '172.86',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B00141TR76',\n",
       "   'direction': '西南',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路29',\n",
       "   'poiweight': '0.052819',\n",
       "   'name': '中山大学南方学院教学楼4号',\n",
       "   'location': '113.677460,23.630490',\n",
       "   'distance': '297.315',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0FFKP7Q5N',\n",
       "   'direction': '西南',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '中山大学南方学院2号实验楼',\n",
       "   'location': '113.678211,23.630956',\n",
       "   'distance': '210.76',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B00140TWHT',\n",
       "   'direction': '南',\n",
       "   'businessarea': [],\n",
       "   'address': '笃行路2号',\n",
       "   'poiweight': '0.157653',\n",
       "   'name': '教工住宅1号',\n",
       "   'location': '113.678490,23.630432',\n",
       "   'distance': '251.758',\n",
       "   'tel': [],\n",
       "   'type': '商务住宅;住宅区;住宅小区'},\n",
       "  {'id': 'B0G3ARGF5Y',\n",
       "   'direction': '西',\n",
       "   'businessarea': [],\n",
       "   'address': [],\n",
       "   'poiweight': '0.286321',\n",
       "   'name': '中山大学南方学院教学楼1号',\n",
       "   'location': '113.677077,23.631783',\n",
       "   'distance': '241.753',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0FFLBEOND',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '从莞深高速(中山大学南方学院)',\n",
       "   'poiweight': '0.190963',\n",
       "   'name': '聚贤楼10号',\n",
       "   'location': '113.681253,23.631036',\n",
       "   'distance': '263.444',\n",
       "   'tel': [],\n",
       "   'type': '商务住宅;住宅区;宿舍'},\n",
       "  {'id': 'B0FFKP81F0',\n",
       "   'direction': '西',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路19号附近',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '教学楼1号(文学与传媒学院)',\n",
       "   'location': '113.676866,23.631736',\n",
       "   'distance': '263.674',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0FFKP838K',\n",
       "   'direction': '西南',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路25',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '教学楼3号(外国语学院)',\n",
       "   'location': '113.677247,23.630947',\n",
       "   'distance': '275.62',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0FFJLW0O9',\n",
       "   'direction': '西',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路4附近',\n",
       "   'poiweight': '0.191645',\n",
       "   'name': '中山大学南方学院西区饭堂',\n",
       "   'location': '113.676210,23.632177',\n",
       "   'distance': '316.572',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0FFKPXMCN',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '中山路',\n",
       "   'poiweight': '0.191739',\n",
       "   'name': '中山大学南方学院音乐系',\n",
       "   'location': '113.678792,23.635389',\n",
       "   'distance': '316.942',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0FFJBZLYT',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '中山路与博学路交叉口东南50米',\n",
       "   'poiweight': '0.297382',\n",
       "   'name': '铜像广场',\n",
       "   'location': '113.676921,23.634555',\n",
       "   'distance': '326.444',\n",
       "   'tel': [],\n",
       "   'type': '风景名胜;风景名胜;风景名胜'},\n",
       "  {'id': 'B0FFG8CSEK',\n",
       "   'direction': '东',\n",
       "   'businessarea': [],\n",
       "   'address': '从莞深高速(中山大学南方学院)',\n",
       "   'poiweight': '0.185371',\n",
       "   'name': 'L5员工宿舍',\n",
       "   'location': '113.682583,23.631487',\n",
       "   'distance': '356.923',\n",
       "   'tel': [],\n",
       "   'type': '商务住宅;住宅区;宿舍'},\n",
       "  {'id': 'B0FFKPXO2S',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路附近',\n",
       "   'poiweight': '0.188247',\n",
       "   'name': '中山大学南方学院医务室',\n",
       "   'location': '113.679394,23.635924',\n",
       "   'distance': '372.556',\n",
       "   'tel': [],\n",
       "   'type': '医疗保健服务;医疗保健服务场所;医疗保健服务场所'},\n",
       "  {'id': 'B0FFH6K3U9',\n",
       "   'direction': '西南',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇温泉大道882号中大南方H7栋1-5层',\n",
       "   'poiweight': '0.254885',\n",
       "   'name': '广州中大南方招待所',\n",
       "   'location': '113.676330,23.631332',\n",
       "   'distance': '331.438',\n",
       "   'tel': '020-61787222',\n",
       "   'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "  {'id': 'B0FFHHLMF8',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '中山大学南方学院明辩路2号第三饭堂',\n",
       "   'poiweight': '0.178935',\n",
       "   'name': '茗语轩餐厅',\n",
       "   'location': '113.681901,23.634495',\n",
       "   'distance': '341.332',\n",
       "   'tel': '13929501395;13533390928',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅'},\n",
       "  {'id': 'B0FFLJV996',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': [],\n",
       "   'poiweight': '0.286264',\n",
       "   'name': '保利桃花源66BLOCK',\n",
       "   'location': '113.682954,23.631008',\n",
       "   'distance': '412.208',\n",
       "   'tel': [],\n",
       "   'type': '商务住宅;住宅区;住宅小区'},\n",
       "  {'id': 'B0FFKPXY26',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '从莞深高速公路',\n",
       "   'poiweight': '0.21826',\n",
       "   'name': '中山大学南方学院聚贤楼5号',\n",
       "   'location': '113.680265,23.636313',\n",
       "   'distance': '427.447',\n",
       "   'tel': [],\n",
       "   'type': '商务住宅;商务住宅相关;商务住宅相关'},\n",
       "  {'id': 'B0FFGXGN3K',\n",
       "   'direction': '东',\n",
       "   'businessarea': [],\n",
       "   'address': '中山大学南方学院',\n",
       "   'poiweight': '0.188657',\n",
       "   'name': '中山大学南方学院宿舍H25',\n",
       "   'location': '113.683474,23.632020',\n",
       "   'distance': '430.984',\n",
       "   'tel': [],\n",
       "   'type': '商务住宅;住宅区;宿舍'}]}"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用bus函数\n",
    "results_walk = walk(key,walk_origin,walk_destination)\n",
    "# 用r.json进行数据提取（直接返回results_walk出不了数据？？）\n",
    "r.json()['regeocode']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>020F49F0050461203</td>\n",
       "      <td>113.68,23.634</td>\n",
       "      <td>南</td>\n",
       "      <td>博学路</td>\n",
       "      <td>156.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>020F49F0050462451</td>\n",
       "      <td>113.677,23.6347</td>\n",
       "      <td>东南</td>\n",
       "      <td>中山路</td>\n",
       "      <td>343.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>020F49F006047765</td>\n",
       "      <td>113.682,23.6394</td>\n",
       "      <td>南</td>\n",
       "      <td>S29从莞深高速</td>\n",
       "      <td>807.947</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                  id         location direction      name distance\n",
       "0  020F49F0050461203    113.68,23.634         南       博学路  156.951\n",
       "1  020F49F0050462451  113.677,23.6347        东南       中山路  343.951\n",
       "2   020F49F006047765  113.682,23.6394         南  S29从莞深高速  807.947"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#pandas 数据提取\n",
    "pd.json_normalize(r.json()['regeocode']['roads'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 公交车\n",
    "\n",
    "> * 代码内容：\n",
    "> * url：‘https://restapi.amap.com/v3/direction/transit/integrated?parameters’\n",
    "> * 必填参数：key，origin，destination 其他可选参数详见：[公交车路径](https://lbs.amap.com/api/webservice/guide/api/direction#bus)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [],
   "source": [
    "#公交车函数：bus\n",
    "def bus(key,origin,destination,city):\n",
    "    bus_url = \"https://restapi.amap.com/v3/direction/transit/integrated?parameters\"\n",
    "    params ={\n",
    "        \"key\":key,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination,\n",
    "        \"city\":city\n",
    "    }\n",
    "    r = requests.get(bus_url,params=params)\n",
    "    results = r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 数据准备： \n",
    "origin = '广东省广州市暨南大学'\n",
    "destination = '广东省广州市猎德'\n",
    "city = '广州'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 调用函数geocode 得到location\n",
    "location_origin = geocode(key,origin)\n",
    "location_destination = geocode(key,destination)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '5',\n",
       " 'route': {'origin': '113.350961,23.131577',\n",
       "  'destination': '113.336127,23.113409',\n",
       "  'distance': '3224',\n",
       "  'taxi_cost': '14',\n",
       "  'transits': [{'cost': '1.0',\n",
       "    'duration': '3060',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1408',\n",
       "    'distance': '4611',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.345055,23.125912',\n",
       "       'distance': '1225',\n",
       "       'duration': '1050',\n",
       "       'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '143',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真茹路步行456米右转',\n",
       "         'road': '真茹路',\n",
       "         'distance': '456',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿忠信路步行164米左转',\n",
       "         'road': '忠信路',\n",
       "         'distance': '164',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349602,23.127140;113.349144,23.127136;113.348541,23.127123;113.347977,23.127117',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行115米右转',\n",
       "         'road': [],\n",
       "         'distance': '115',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347977,23.127113;113.347954,23.126619;113.347946,23.126467;113.347878,23.126076',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行67米向右前方行走',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '67',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347870,23.126072;113.347603,23.126112;113.347534,23.126116;113.347221,23.126137',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行125米左转',\n",
       "         'road': [],\n",
       "         'distance': '125',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347214,23.126137;113.347214,23.126160;113.346947,23.126177;113.346901,23.125681;113.346588,23.125698;113.346596,23.125776',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行155米到达国防大厦',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '155',\n",
       "         'duration': [],\n",
       "         'polyline': '113.346596,23.125772;113.346306,23.125793;113.346100,23.125816;113.345978,23.125834;113.345726,23.125860;113.345055,23.125912',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达国防大厦'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '国防大厦',\n",
       "          'id': '900000105872002',\n",
       "          'location': '113.344963,23.125919'},\n",
       "         'arrival_stop': {'name': '猎德码头',\n",
       "          'id': '900000105872006',\n",
       "          'location': '113.337082,23.112673'},\n",
       "         'name': '669路(金穗路总站(马场路口)--金穗路总站(马场路口))',\n",
       "         'id': '900000105872',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '3203',\n",
       "         'duration': '1854',\n",
       "         'polyline': '113.344963,23.125919;113.344961,23.125920;113.345725,23.125859;113.345977,23.125833;113.346102,23.125816;113.346306,23.125794;113.347248,23.125738;113.347444,23.125768;113.347708,23.125738;113.348134,23.125673;113.348650,23.125595;113.348906,23.125408;113.349297,23.125321;113.349839,23.125200;113.349718,23.124605;113.349596,23.124162;113.349510,23.123837;113.349510,23.123832;113.349384,23.123368;113.348611,23.120503;113.348533,23.120226;113.348537,23.120230;113.348534,23.120235;113.348534,23.120232;113.348198,23.118980;113.348000,23.118338;113.347816,23.117743;113.347725,23.117605;113.347633,23.117527;113.347450,23.117386;113.347382,23.117395;113.347153,23.117418;113.346390,23.117496;113.346389,23.117496;113.346124,23.117522;113.344839,23.117609;113.344674,23.117622;113.344132,23.117648;113.343767,23.117661;113.343459,23.117682;113.343268,23.117422;113.343264,23.117179;113.343268,23.117010;113.343260,23.115990;113.343242,23.115239;113.343229,23.114661;113.343216,23.113763;113.343203,23.113307;113.343186,23.112313;113.343095,23.112092;113.342947,23.111953;113.342856,23.111918;113.342522,23.111962;113.342066,23.112031;113.341801,23.112070;113.341805,23.112072;113.341141,23.112171;113.340675,23.112226;113.338737,23.112469;113.338371,23.112513;113.337975,23.112560;113.337082,23.112673',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '5',\n",
       "         'via_stops': [{'name': '跑马地花园',\n",
       "           'id': '900000105872016',\n",
       "           'location': '113.349510,23.123837'},\n",
       "          {'name': '骏逸苑',\n",
       "           'id': '900000105872003',\n",
       "           'location': '113.348533,23.120226'},\n",
       "          {'name': '花城大道',\n",
       "           'id': '900000105872004',\n",
       "           'location': '113.346390,23.117496'},\n",
       "          {'name': '马场南路',\n",
       "           'id': '900000105872015',\n",
       "           'location': '113.343242,23.115239'},\n",
       "          {'name': '临江大道东',\n",
       "           'id': '900000105872005',\n",
       "           'location': '113.341801,23.112070'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.337013,23.112679',\n",
       "       'destination': '113.336212,23.113394',\n",
       "       'distance': '183',\n",
       "       'duration': '156',\n",
       "       'steps': [{'instruction': '沿临江大道步行62米右转',\n",
       "         'road': '临江大道',\n",
       "         'distance': '62',\n",
       "         'duration': [],\n",
       "         'polyline': '113.337013,23.112679;113.336601,23.112730;113.336403,23.112764',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海文路步行83米左转',\n",
       "         'road': '海文路',\n",
       "         'distance': '83',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336403,23.112764;113.336441,23.113173;113.336418,23.113516',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行17米左转',\n",
       "         'road': [],\n",
       "         'distance': '17',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336418,23.113516;113.336327,23.113554;113.336258,23.113581',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行21米',\n",
       "         'road': [],\n",
       "         'distance': '21',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336258,23.113581;113.336212,23.113394',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '2.0',\n",
       "    'duration': '2682',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1875',\n",
       "    'distance': '3660',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.343330,23.123077',\n",
       "       'distance': '1692',\n",
       "       'duration': '1450',\n",
       "       'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '143',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真茹路步行456米右转',\n",
       "         'road': '真茹路',\n",
       "         'distance': '456',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿忠信路步行164米左转',\n",
       "         'road': '忠信路',\n",
       "         'distance': '164',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349602,23.127140;113.349144,23.127136;113.348541,23.127123;113.347977,23.127117',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行115米右转',\n",
       "         'road': [],\n",
       "         'distance': '115',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347977,23.127113;113.347954,23.126619;113.347946,23.126467;113.347878,23.126076',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行448米左转',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '448',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347870,23.126072;113.347603,23.126112;113.347534,23.126116;113.347221,23.126137;113.346855,23.126163;113.346703,23.126177;113.346245,23.126198;113.345619,23.126232;113.344688,23.126293;113.344040,23.126341;113.343880,23.126354;113.343674,23.126375;113.343460,23.126389',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿马场路步行366米到达红线女中心',\n",
       "         'road': '马场路',\n",
       "         'distance': '366',\n",
       "         'duration': [],\n",
       "         'polyline': '113.343460,23.126389;113.343376,23.126038;113.343376,23.125919;113.343361,23.125494;113.343353,23.125139;113.343346,23.124201;113.343346,23.123955;113.343346,23.123476;113.343330,23.123077',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达红线女中心'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '红线女中心',\n",
       "          'id': '440100016237010',\n",
       "          'location': '113.343323,23.123074'},\n",
       "         'arrival_stop': {'name': '猎德码头',\n",
       "          'id': '440100016237014',\n",
       "          'location': '113.337013,23.112682'},\n",
       "         'name': '138路(东莞庄总站--五羊新城总站)',\n",
       "         'id': '440100016237',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '1785',\n",
       "         'duration': '1075',\n",
       "         'polyline': '113.343323,23.123074;113.343323,23.122465;113.343323,23.122135;113.343323,23.121876;113.343323,23.121498;113.343346,23.121321;113.343346,23.120838;113.343315,23.119480;113.343315,23.119381;113.343300,23.118837;113.343300,23.118729;113.343300,23.118732;113.343300,23.118729;113.343300,23.118616;113.343300,23.118425;113.343292,23.117977;113.343277,23.117701;113.343269,23.117422;113.343269,23.117178;113.343269,23.117008;113.343262,23.115990;113.343246,23.115242;113.343246,23.115238;113.343224,23.114662;113.343216,23.113762;113.343201,23.113306;113.343193,23.112373;113.343117,23.112127;113.343063,23.112062;113.342949,23.111954;113.342865,23.111908;113.342339,23.111992;113.342064,23.112032;113.341805,23.112072;113.341141,23.112171;113.340675,23.112226;113.338737,23.112469;113.338371,23.112513;113.337975,23.112560;113.337013,23.112682',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '马场路中',\n",
       "           'id': '440100016237011',\n",
       "           'location': '113.343300,23.118729'},\n",
       "          {'name': '马场路南',\n",
       "           'id': '440100016237022',\n",
       "           'location': '113.343246,23.115242'},\n",
       "          {'name': '临江大道东',\n",
       "           'id': '440100016237013',\n",
       "           'location': '113.341805,23.112072'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.337013,23.112679',\n",
       "       'destination': '113.336212,23.113394',\n",
       "       'distance': '183',\n",
       "       'duration': '156',\n",
       "       'steps': [{'instruction': '沿临江大道步行62米右转',\n",
       "         'road': '临江大道',\n",
       "         'distance': '62',\n",
       "         'duration': [],\n",
       "         'polyline': '113.337013,23.112679;113.336601,23.112730;113.336403,23.112764',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海文路步行83米左转',\n",
       "         'road': '海文路',\n",
       "         'distance': '83',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336403,23.112764;113.336441,23.113173;113.336418,23.113516',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行17米左转',\n",
       "         'road': [],\n",
       "         'distance': '17',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336418,23.113516;113.336327,23.113554;113.336258,23.113581',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行21米',\n",
       "         'road': [],\n",
       "         'distance': '21',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336258,23.113581;113.336212,23.113394',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '3.0',\n",
       "    'duration': '2915',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2878',\n",
       "    'distance': '7016',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.339600,23.134882',\n",
       "       'distance': '1705',\n",
       "       'duration': '1461',\n",
       "       'steps': [{'instruction': '沿明湖南路步行35米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351357,23.131479',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行219米向右前方行走',\n",
       "         'road': '真如东路',\n",
       "         'distance': '219',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351357,23.131479;113.351288,23.132196;113.351280,23.132383;113.351265,23.132973;113.351242,23.133142;113.351219,23.133255;113.351105,23.133425',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行311米右转',\n",
       "         'road': '真如东路',\n",
       "         'distance': '311',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351105,23.133425;113.351105,23.133646;113.350967,23.134319;113.350739,23.135208;113.350723,23.135242;113.350685,23.135265;113.350037,23.135382;113.349899,23.135382;113.349792,23.135382;113.349709,23.135386',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行25米左转',\n",
       "         'road': [],\n",
       "         'distance': '25',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349709,23.135386;113.349724,23.135477;113.349762,23.135612',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山大道西辅路步行48米往前走',\n",
       "         'road': '中山大道西辅路',\n",
       "         'distance': '48',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349762,23.135612;113.349297,23.135685',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山大道西步行389米往前走',\n",
       "         'road': '中山大道西',\n",
       "         'distance': '389',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349289,23.135685;113.347931,23.135933;113.347603,23.135994;113.347290,23.136055;113.347237,23.136068;113.346786,23.136150;113.345551,23.136272',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿天河路辅路步行510米左转',\n",
       "         'road': '天河路辅路',\n",
       "         'distance': '510',\n",
       "         'duration': [],\n",
       "         'polyline': '113.345543,23.136272;113.345161,23.136219;113.344955,23.136181;113.344780,23.136147;113.343987,23.135981;113.343697,23.135916;113.343346,23.135841;113.342941,23.135756;113.342758,23.135715;113.342560,23.135668;113.342316,23.135612;113.342033,23.135538;113.341805,23.135481;113.341431,23.135395;113.340897,23.135260;113.340675,23.135187;113.340637,23.135170',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行168米到达岗顶',\n",
       "         'road': [],\n",
       "         'distance': '168',\n",
       "         'duration': [],\n",
       "         'polyline': '113.340630,23.135174;113.340607,23.134878;113.340248,23.134731;113.340080,23.135078;113.339600,23.134882',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达岗顶'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '岗顶',\n",
       "          'id': '440100023034005',\n",
       "          'location': '113.339601,23.134880'},\n",
       "         'arrival_stop': {'name': '珠江新城',\n",
       "          'id': '440100023034008',\n",
       "          'location': '113.321206,23.119293'},\n",
       "         'name': '地铁3号线(天河客运站--番禺广场)',\n",
       "         'id': '440100023034',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '3158',\n",
       "         'duration': '316',\n",
       "         'polyline': '113.339601,23.134880;113.338709,23.134517;113.338282,23.134328;113.338056,23.134226;113.337864,23.134149;113.337673,23.134069;113.337473,23.134001;113.337212,23.133924;113.336968,23.133861;113.336742,23.133806;113.336464,23.133743;113.335455,23.133493;113.334924,23.133353;113.334733,23.133305;113.334585,23.133277;113.334305,23.133216;113.333834,23.133138;113.333091,23.133116;113.332124,23.133135;113.331184,23.133151;113.330589,23.133198;113.328752,23.133418;113.328183,23.133479;113.327289,23.133514;113.326354,23.133514;113.325081,23.133547;113.324429,23.133601;113.323537,23.133645;113.322613,23.133645;113.322308,23.133591;113.321994,23.133405;113.321558,23.132971;113.321548,23.132550;113.321503,23.131138;113.321456,23.129680;113.321411,23.128625;113.321320,23.127081;113.321280,23.124987;113.321239,23.122875;113.321210,23.120814;113.321206,23.119293',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0610',\n",
       "         'end_time': '2330',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '石牌桥',\n",
       "           'id': '440100023034006',\n",
       "           'location': '113.332124,23.133135'},\n",
       "          {'name': '体育西路',\n",
       "           'id': '440100023034007',\n",
       "           'location': '113.321503,23.131138'}]}]},\n",
       "      'entrance': {'name': 'D口', 'location': '113.340599,23.134874'},\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': [],\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '珠江新城',\n",
       "          'id': '440100023037014',\n",
       "          'location': '113.321206,23.119293'},\n",
       "         'arrival_stop': {'name': '猎德',\n",
       "          'id': '440100023037015',\n",
       "          'location': '113.332105,23.118539'},\n",
       "         'name': '地铁5号线(滘口--文冲)',\n",
       "         'id': '440100023037',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '980',\n",
       "         'duration': '133',\n",
       "         'polyline': '113.321206,23.119293;113.322586,23.119290;113.324445,23.119121;113.326668,23.118952;113.329169,23.118750;113.331498,23.118582;113.332105,23.118539',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0615',\n",
       "         'end_time': '2315',\n",
       "         'via_num': '0',\n",
       "         'via_stops': []}]},\n",
       "      'entrance': [],\n",
       "      'exit': {'name': 'B口', 'location': '113.332726,23.118099'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.332100,23.118532',\n",
       "       'destination': '113.336212,23.113394',\n",
       "       'distance': '1172',\n",
       "       'duration': '1004',\n",
       "       'steps': [{'instruction': '步行151米右转',\n",
       "         'road': [],\n",
       "         'distance': '151',\n",
       "         'duration': [],\n",
       "         'polyline': '113.332100,23.118532;113.332779,23.118494;113.332809,23.118494;113.332779,23.118095;113.332726,23.118099;113.332695,23.118359',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿花城大道步行22米向右前方行走',\n",
       "         'road': '花城大道',\n",
       "         'distance': '22',\n",
       "         'duration': [],\n",
       "         'polyline': '113.332687,23.118359;113.332909,23.118347',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿猎德大道步行79米向右前方行走',\n",
       "         'road': '猎德大道',\n",
       "         'distance': '79',\n",
       "         'duration': [],\n",
       "         'polyline': '113.332909,23.118341;113.333267,23.118065;113.333488,23.117851',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿猎德大道步行298米右转',\n",
       "         'road': '猎德大道',\n",
       "         'distance': '298',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333488,23.117847;113.333519,23.117331;113.333519,23.117266;113.333534,23.116875;113.333542,23.116472;113.333549,23.116064;113.333557,23.115938;113.333580,23.115339;113.333588,23.115129',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行25米向右前方行走',\n",
       "         'road': [],\n",
       "         'distance': '25',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333580,23.115126;113.333488,23.115126;113.333488,23.115269',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行81米右转',\n",
       "         'road': [],\n",
       "         'distance': '81',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333488,23.115269;113.334015,23.115820',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行32米往前走',\n",
       "         'road': [],\n",
       "         'distance': '32',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334015,23.115820;113.334076,23.115639;113.334122,23.115561',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行10米右转',\n",
       "         'road': [],\n",
       "         'distance': '10',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334122,23.115555;113.334198,23.115490',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行10米右转',\n",
       "         'road': [],\n",
       "         'distance': '10',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334198,23.115486;113.334282,23.115435',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行109米左转',\n",
       "         'road': [],\n",
       "         'distance': '109',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334282,23.115429;113.334244,23.115152;113.334145,23.114449',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海月路步行230米右转',\n",
       "         'road': '海月路',\n",
       "         'distance': '230',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334137,23.114445;113.334671,23.114445;113.335442,23.114445;113.335617,23.114435;113.336395,23.114305',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海文路步行87米右转',\n",
       "         'road': '海文路',\n",
       "         'distance': '87',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336395,23.114302;113.336395,23.114050;113.336418,23.113520',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行17米左转',\n",
       "         'road': [],\n",
       "         'distance': '17',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336418,23.113516;113.336327,23.113554;113.336258,23.113581',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行21米',\n",
       "         'road': [],\n",
       "         'distance': '21',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336258,23.113581;113.336212,23.113394',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '2.0',\n",
       "    'duration': '3019',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2143',\n",
       "    'distance': '4705',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.345055,23.125912',\n",
       "       'distance': '1225',\n",
       "       'duration': '1050',\n",
       "       'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '143',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真茹路步行456米右转',\n",
       "         'road': '真茹路',\n",
       "         'distance': '456',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿忠信路步行164米左转',\n",
       "         'road': '忠信路',\n",
       "         'distance': '164',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349602,23.127140;113.349144,23.127136;113.348541,23.127123;113.347977,23.127117',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行115米右转',\n",
       "         'road': [],\n",
       "         'distance': '115',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347977,23.127113;113.347954,23.126619;113.347946,23.126467;113.347878,23.126076',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行67米向右前方行走',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '67',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347870,23.126072;113.347603,23.126112;113.347534,23.126116;113.347221,23.126137',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行125米左转',\n",
       "         'road': [],\n",
       "         'distance': '125',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347214,23.126137;113.347214,23.126160;113.346947,23.126177;113.346901,23.125681;113.346588,23.125698;113.346596,23.125776',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行155米到达国防大厦',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '155',\n",
       "         'duration': [],\n",
       "         'polyline': '113.346596,23.125772;113.346306,23.125793;113.346100,23.125816;113.345978,23.125834;113.345726,23.125860;113.345055,23.125912',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达国防大厦'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '国防大厦',\n",
       "          'id': '440100016838024',\n",
       "          'location': '113.344961,23.125920'},\n",
       "         'arrival_stop': {'name': '珠江新城总站',\n",
       "          'id': '440100016838027',\n",
       "          'location': '113.341133,23.116398'},\n",
       "         'name': '545路(泽德花苑总站--珠江新城总站)',\n",
       "         'id': '440100016838',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '2562',\n",
       "         'duration': '1183',\n",
       "         'polyline': '113.344961,23.125920;113.344963,23.125919;113.344961,23.125920;113.345725,23.125859;113.345977,23.125833;113.346102,23.125816;113.346306,23.125794;113.347248,23.125738;113.347444,23.125768;113.347708,23.125738;113.348134,23.125673;113.348650,23.125595;113.348906,23.125408;113.349297,23.125321;113.349839,23.125200;113.349718,23.124605;113.349596,23.124162;113.349505,23.123824;113.349505,23.123819;113.349384,23.123368;113.348611,23.120503;113.348533,23.120226;113.348533,23.120221;113.348194,23.118980;113.347999,23.118338;113.347808,23.117704;113.347708,23.117609;113.347517,23.117474;113.347374,23.117396;113.347096,23.117426;113.346862,23.117444;113.346450,23.117487;113.345981,23.117535;113.344839,23.117609;113.344674,23.117622;113.344132,23.117648;113.343767,23.117661;113.343459,23.117682;113.343268,23.117422;113.343264,23.117179;113.343268,23.117010;113.343260,23.115990;113.343242,23.115234;113.343229,23.114661;113.342196,23.114753;113.341319,23.114835;113.340911,23.114887;113.340890,23.115234;113.340859,23.115968;113.341194,23.115985;113.341150,23.116359;113.341133,23.116398',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0600',\n",
       "         'end_time': '2230',\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '跑马地花园',\n",
       "           'id': '440100016838044',\n",
       "           'location': '113.349505,23.123824'},\n",
       "          {'name': '骏逸苑',\n",
       "           'id': '440100016838025',\n",
       "           'location': '113.348533,23.120226'},\n",
       "          {'name': '花城大道',\n",
       "           'id': '440100016838040',\n",
       "           'location': '113.346450,23.117487'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.341148,23.116323',\n",
       "       'destination': '113.336212,23.113394',\n",
       "       'distance': '918',\n",
       "       'duration': '786',\n",
       "       'steps': [{'instruction': '步行37米右转',\n",
       "         'road': [],\n",
       "         'distance': '37',\n",
       "         'duration': [],\n",
       "         'polyline': '113.341148,23.116323;113.341194,23.115990',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海明路步行500米左转',\n",
       "         'road': '海明路',\n",
       "         'distance': '500',\n",
       "         'duration': [],\n",
       "         'polyline': '113.341194,23.115986;113.340858,23.115973;113.340790,23.115973;113.340416,23.115976;113.339798,23.116058;113.339691,23.116076;113.338829,23.116177;113.338509,23.116220;113.338432,23.116228;113.337990,23.116316;113.337425,23.116442;113.337013,23.116524;113.336449,23.116632;113.336304,23.116632',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海文路步行343米右转',\n",
       "         'road': '海文路',\n",
       "         'distance': '343',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336304,23.116632;113.336327,23.116116;113.336365,23.115595;113.336365,23.115282;113.336372,23.114679;113.336395,23.114305;113.336395,23.114050;113.336418,23.113520',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行17米左转',\n",
       "         'road': [],\n",
       "         'distance': '17',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336418,23.113516;113.336327,23.113554;113.336258,23.113581',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行21米',\n",
       "         'road': [],\n",
       "         'distance': '21',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336258,23.113581;113.336212,23.113394',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '2.0',\n",
       "    'duration': '3468',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2125',\n",
       "    'distance': '3864',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.345093,23.126266',\n",
       "       'distance': '1160',\n",
       "       'duration': '994',\n",
       "       'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '143',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真茹路步行456米右转',\n",
       "         'road': '真茹路',\n",
       "         'distance': '456',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿忠信路步行164米左转',\n",
       "         'road': '忠信路',\n",
       "         'distance': '164',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349602,23.127140;113.349144,23.127136;113.348541,23.127123;113.347977,23.127117',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行115米右转',\n",
       "         'road': [],\n",
       "         'distance': '115',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347977,23.127113;113.347954,23.126619;113.347946,23.126467;113.347878,23.126076',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行282米到达国防大厦',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '282',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347870,23.126072;113.347603,23.126112;113.347534,23.126116;113.347221,23.126137;113.346855,23.126163;113.346703,23.126177;113.346245,23.126198;113.345619,23.126232;113.345093,23.126266',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达国防大厦'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '国防大厦',\n",
       "          'id': '440100017236025',\n",
       "          'location': '113.345039,23.126272'},\n",
       "         'arrival_stop': {'name': '珠江公园南门',\n",
       "          'id': '440100017236029',\n",
       "          'location': '113.335547,23.118342'},\n",
       "         'name': '901A路(天河智慧城核心区总站(高唐)--华成路总站)',\n",
       "         'id': '440100017236',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '1739',\n",
       "         'duration': '1647',\n",
       "         'polyline': '113.345039,23.126272;113.344692,23.126293;113.344036,23.126341;113.343958,23.126345;113.343880,23.126354;113.343672,23.126376;113.343459,23.126389;113.343368,23.126029;113.343355,23.125135;113.343342,23.124193;113.343338,23.123950;113.343333,23.123472;113.343329,23.123273;113.343320,23.122457;113.343329,23.122135;113.343320,23.121875;113.343338,23.121567;113.343338,23.121319;113.343338,23.120838;113.343312,23.119479;113.343312,23.119379;113.343294,23.118837;113.343294,23.118737;113.343294,23.118615;113.343294,23.118424;113.343277,23.118021;113.343242,23.117930;113.343173,23.117839;113.342969,23.117713;113.342222,23.117765;113.342044,23.117778;113.342040,23.117778;113.341411,23.117817;113.340647,23.117904;113.340304,23.117934;113.339748,23.117990;113.339132,23.118047;113.338837,23.118077;113.335547,23.118342',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '红线女中心',\n",
       "           'id': '440100017236026',\n",
       "           'location': '113.343329,23.123273'},\n",
       "          {'name': '马场路中',\n",
       "           'id': '440100017236027',\n",
       "           'location': '113.343294,23.118737'},\n",
       "          {'name': '花城大道东',\n",
       "           'id': '440100017236028',\n",
       "           'location': '113.342044,23.117778'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.335556,23.118341',\n",
       "       'destination': '113.336212,23.113394',\n",
       "       'distance': '965',\n",
       "       'duration': '827',\n",
       "       'steps': [{'instruction': '沿花城大道步行124米向右前方行走',\n",
       "         'road': '花城大道',\n",
       "         'distance': '124',\n",
       "         'duration': [],\n",
       "         'polyline': '113.335556,23.118341;113.335075,23.118382;113.334900,23.118399;113.334564,23.118420;113.334335,23.118443',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿猎德大道步行29米左转',\n",
       "         'road': '猎德大道',\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334335,23.118443;113.334084,23.118559',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行23米左转',\n",
       "         'road': [],\n",
       "         'distance': '23',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334084,23.118559;113.333870,23.118477',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿猎德大道步行24米向左前方行走',\n",
       "         'road': '猎德大道',\n",
       "         'distance': '24',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333870,23.118473;113.333885,23.118259',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行31米右转',\n",
       "         'road': [],\n",
       "         'distance': '31',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333885,23.118256;113.334099,23.118055',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿花城大道步行29米向左前方行走',\n",
       "         'road': '花城大道',\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334099,23.118052;113.334068,23.118025;113.333900,23.117851',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿猎德大道步行375米左转',\n",
       "         'road': '猎德大道',\n",
       "         'distance': '375',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333900,23.117847;113.333916,23.117365;113.333931,23.116741;113.333939,23.116358;113.333969,23.115152;113.333969,23.114449',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海月路步行167米右转',\n",
       "         'road': '海月路',\n",
       "         'distance': '167',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333969,23.114445;113.334137,23.114445;113.334671,23.114445;113.335442,23.114445;113.335617,23.114435',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行64米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '64',\n",
       "         'duration': [],\n",
       "         'polyline': '113.335617,23.114431;113.335609,23.114105;113.335571,23.113850',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行78米右转',\n",
       "         'road': [],\n",
       "         'distance': '78',\n",
       "         'duration': [],\n",
       "         'polyline': '113.335571,23.113846;113.335602,23.113794;113.335678,23.113750;113.336151,23.113628;113.336258,23.113585',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行21米',\n",
       "         'road': [],\n",
       "         'distance': '21',\n",
       "         'duration': [],\n",
       "         'polyline': '113.336258,23.113581;113.336212,23.113394',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]}}"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results_bus =  bus(key,location_origin,location_destination,city)\n",
    "results_bus"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> * pandas 处理时：{},\n",
    "1、当表格为一行时，可直接去列name\n",
    "2、当表格为多行时，去某一行（列表）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>id</th>\n",
       "      <th>type</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>bustimetag</th>\n",
       "      <th>start_time</th>\n",
       "      <th>end_time</th>\n",
       "      <th>via_num</th>\n",
       "      <th>via_stops</th>\n",
       "      <th>departure_stop.name</th>\n",
       "      <th>departure_stop.id</th>\n",
       "      <th>departure_stop.location</th>\n",
       "      <th>arrival_stop.name</th>\n",
       "      <th>arrival_stop.id</th>\n",
       "      <th>arrival_stop.location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>669路(金穗路总站(马场路口)--金穗路总站(马场路口))</td>\n",
       "      <td>900000105872</td>\n",
       "      <td>普通公交线路</td>\n",
       "      <td>3203</td>\n",
       "      <td>1854</td>\n",
       "      <td>113.344963,23.125919;113.344961,23.125920;113....</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>5</td>\n",
       "      <td>[{'name': '跑马地花园', 'id': '900000105872016', 'l...</td>\n",
       "      <td>国防大厦</td>\n",
       "      <td>900000105872002</td>\n",
       "      <td>113.344963,23.125919</td>\n",
       "      <td>猎德码头</td>\n",
       "      <td>900000105872006</td>\n",
       "      <td>113.337082,23.112673</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                             name            id    type distance duration  \\\n",
       "0  669路(金穗路总站(马场路口)--金穗路总站(马场路口))  900000105872  普通公交线路     3203     1854   \n",
       "\n",
       "                                            polyline bustimetag start_time  \\\n",
       "0  113.344963,23.125919;113.344961,23.125920;113....          0         []   \n",
       "\n",
       "  end_time via_num                                          via_stops  \\\n",
       "0       []       5  [{'name': '跑马地花园', 'id': '900000105872016', 'l...   \n",
       "\n",
       "  departure_stop.name departure_stop.id departure_stop.location  \\\n",
       "0                国防大厦   900000105872002    113.344963,23.125919   \n",
       "\n",
       "  arrival_stop.name  arrival_stop.id arrival_stop.location  \n",
       "0              猎德码头  900000105872006  113.337082,23.112673  "
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "_669路_bus = pd.json_normalize(results_bus['route']['transits'][0]['segments'][0]['bus']['buslines'])\n",
    "_669路_bus"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>沿明湖南路步行143米左转</td>\n",
       "      <td>明湖南路</td>\n",
       "      <td>143</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.351013,23.131449;113.351013,23.131449;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>沿真茹路步行456米右转</td>\n",
       "      <td>真茹路</td>\n",
       "      <td>456</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.349617,23.131294;113.349609,23.131102;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>沿忠信路步行164米左转</td>\n",
       "      <td>忠信路</td>\n",
       "      <td>164</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.349602,23.127140;113.349144,23.127136;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>步行115米右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>115</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.347977,23.127113;113.347954,23.126619;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>沿黄埔大道西步行67米向右前方行走</td>\n",
       "      <td>黄埔大道西</td>\n",
       "      <td>67</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.347870,23.126072;113.347603,23.126112;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>步行125米左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>125</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.347214,23.126137;113.347214,23.126160;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>沿黄埔大道西步行155米到达国防大厦</td>\n",
       "      <td>黄埔大道西</td>\n",
       "      <td>155</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.346596,23.125772;113.346306,23.125793;113....</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达国防大厦</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "          instruction   road distance duration  \\\n",
       "0       沿明湖南路步行143米左转   明湖南路      143       []   \n",
       "1        沿真茹路步行456米右转    真茹路      456       []   \n",
       "2        沿忠信路步行164米左转    忠信路      164       []   \n",
       "3            步行115米右转     []      115       []   \n",
       "4   沿黄埔大道西步行67米向右前方行走  黄埔大道西       67       []   \n",
       "5            步行125米左转     []      125       []   \n",
       "6  沿黄埔大道西步行155米到达国防大厦  黄埔大道西      155       []   \n",
       "\n",
       "                                            polyline  action assistant_action  \n",
       "0  113.351013,23.131449;113.351013,23.131449;113....      左转               []  \n",
       "1  113.349617,23.131294;113.349609,23.131102;113....      右转               []  \n",
       "2  113.349602,23.127140;113.349144,23.127136;113....      左转               []  \n",
       "3  113.347977,23.127113;113.347954,23.126619;113....      右转               []  \n",
       "4  113.347870,23.126072;113.347603,23.126112;113....  向右前方行走               []  \n",
       "5  113.347214,23.126137;113.347214,23.126160;113....      左转               []  \n",
       "6  113.346596,23.125772;113.346306,23.125793;113....      []           到达国防大厦  "
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "_669路_walking = pd.json_normalize(results_bus['route']['transits'][0]['segments'][0]['walking']['steps'])\n",
    "_669路_walking"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>跑马地花园</td>\n",
       "      <td>900000105872016</td>\n",
       "      <td>113.349510,23.123837</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>骏逸苑</td>\n",
       "      <td>900000105872003</td>\n",
       "      <td>113.348533,23.120226</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>花城大道</td>\n",
       "      <td>900000105872004</td>\n",
       "      <td>113.346390,23.117496</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>马场南路</td>\n",
       "      <td>900000105872015</td>\n",
       "      <td>113.343242,23.115239</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>临江大道东</td>\n",
       "      <td>900000105872005</td>\n",
       "      <td>113.341801,23.112070</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    name               id              location\n",
       "0  跑马地花园  900000105872016  113.349510,23.123837\n",
       "1    骏逸苑  900000105872003  113.348533,23.120226\n",
       "2   花城大道  900000105872004  113.346390,23.117496\n",
       "3   马场南路  900000105872015  113.343242,23.115239\n",
       "4  临江大道东  900000105872005  113.341801,23.112070"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "_669路_bus_via_stops = pd.json_normalize(_669路_bus['via_stops'][0])\n",
    "_669路_bus_via_stops"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 驾车\n",
    "\n",
    "> * url:'https://restapi.amap.com/v3/direction/driving?parameters'\n",
    "> * 必填参数：key，origin，destination \n",
    "> *其他可选参数详见：[驾车路径](https://lbs.amap.com/api/webservice/guide/api/direction#driving)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [],
   "source": [
    "#调用函数\n",
    "def car(key,origin,destination):\n",
    "    car_url = 'https://restapi.amap.com/v3/direction/driving?parameters'\n",
    "    params ={\n",
    "        \"key\":key,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination,\n",
    "        \"stategy\":\"0\"\n",
    "    }\n",
    "    r = requests.get(car_url,params=params)\n",
    "    results = r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 数据准备\n",
    "origin = '广东省深圳市龙岗区布吉街道荣超花园'\n",
    "desination = '广东省广州市从化区中山大学南方学院'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "114.119249,22.593350\n",
      "113.336127,23.113409\n"
     ]
    }
   ],
   "source": [
    "# 调用geocode函数\n",
    "car_origin = geocode(key,origin)\n",
    "car_destination = geocode(key,destination)\n",
    "print(car_origin)\n",
    "print(car_destination)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '020F49F0050461203',\n",
       "    'location': '113.68,23.634',\n",
       "    'direction': '南',\n",
       "    'name': '博学路',\n",
       "    'distance': '156.951'},\n",
       "   {'id': '020F49F0050462451',\n",
       "    'location': '113.677,23.6347',\n",
       "    'direction': '东南',\n",
       "    'name': '中山路',\n",
       "    'distance': '343.951'},\n",
       "   {'id': '020F49F006047765',\n",
       "    'location': '113.682,23.6394',\n",
       "    'direction': '南',\n",
       "    'name': 'S29从莞深高速',\n",
       "    'distance': '807.947'}],\n",
       "  'roadinters': [{'second_name': '中山路',\n",
       "    'first_id': '020F49F0050461203',\n",
       "    'second_id': '020F49F0050462451',\n",
       "    'location': '113.676794,23.634661',\n",
       "    'distance': '343.951',\n",
       "    'first_name': '博学路',\n",
       "    'direction': '东南'}],\n",
       "  'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院',\n",
       "  'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117103000',\n",
       "   'streetNumber': {'number': '7号',\n",
       "    'location': '113.678600,23.633329',\n",
       "    'direction': '西北',\n",
       "    'distance': '109.203',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'aois': [{'area': '536585.849985',\n",
       "    'type': '141201',\n",
       "    'id': 'B00140MR9A',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'adcode': '440117',\n",
       "    'name': '中山大学南方学院',\n",
       "    'distance': '0'}],\n",
       "  'pois': [{'id': 'B00140MR9A',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.450402',\n",
       "    'name': '中山大学南方学院',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'distance': '2.69979',\n",
       "    'tel': '020-61787331',\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFF2VMJ4',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道886号中山大学南方学院内',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院-综合楼',\n",
       "    'location': '113.680117,23.631544',\n",
       "    'distance': '142.466',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B0FFFTC9PH',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.193172',\n",
       "    'name': '中山大学南方学院教学楼10号',\n",
       "    'location': '113.680125,23.633492',\n",
       "    'distance': '132.988',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TQKX',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼6号',\n",
       "    'location': '113.678424,23.633710',\n",
       "    'distance': '153.818',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B00141TQGR',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼7号',\n",
       "    'location': '113.678600,23.633330',\n",
       "    'distance': '109.298',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B00141WQCO',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.14954',\n",
       "    'name': '中山大学南方学院教学楼8号',\n",
       "    'location': '113.680399,23.634329',\n",
       "    'distance': '225.543',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFG9IORM',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院内',\n",
       "    'poiweight': '0.287887',\n",
       "    'name': '中山大学南方学院-图书馆',\n",
       "    'location': '113.679177,23.632762',\n",
       "    'distance': '23.6163',\n",
       "    'tel': '020-61787368;020-61787371',\n",
       "    'type': '科教文化服务;图书馆;图书馆'},\n",
       "   {'id': 'B0FFKP9EQJ',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院4号实验楼',\n",
       "    'location': '113.679963,23.632652',\n",
       "    'distance': '69.4077',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJKIA10',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院',\n",
       "    'poiweight': '0.191691',\n",
       "    'name': '中山大学南方学院-第11教学楼',\n",
       "    'location': '113.680037,23.633173',\n",
       "    'distance': '101.294',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TRVH',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路21',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼2号',\n",
       "    'location': '113.677060,23.631346',\n",
       "    'distance': '264.846',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKERBQZ',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7号附近',\n",
       "    'poiweight': '0.289141',\n",
       "    'name': '中山大学南方学院惟贤门',\n",
       "    'location': '113.678437,23.633721',\n",
       "    'distance': '154.082',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFKP81F4',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '政商研究院教学楼9号',\n",
       "    'location': '113.679949,23.633919',\n",
       "    'distance': '163.951',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP9ET5',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院1号实验楼',\n",
       "    'location': '113.678215,23.631370',\n",
       "    'distance': '172.86',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TR76',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路29',\n",
       "    'poiweight': '0.052819',\n",
       "    'name': '中山大学南方学院教学楼4号',\n",
       "    'location': '113.677460,23.630490',\n",
       "    'distance': '297.315',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP7Q5N',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院2号实验楼',\n",
       "    'location': '113.678211,23.630956',\n",
       "    'distance': '210.76',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00140TWHT',\n",
       "    'direction': '南',\n",
       "    'businessarea': [],\n",
       "    'address': '笃行路2号',\n",
       "    'poiweight': '0.157653',\n",
       "    'name': '教工住宅1号',\n",
       "    'location': '113.678490,23.630432',\n",
       "    'distance': '251.758',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0G3ARGF5Y',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286321',\n",
       "    'name': '中山大学南方学院教学楼1号',\n",
       "    'location': '113.677077,23.631783',\n",
       "    'distance': '241.753',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFLBEOND',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.190963',\n",
       "    'name': '聚贤楼10号',\n",
       "    'location': '113.681253,23.631036',\n",
       "    'distance': '263.444',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKP81F0',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路19号附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼1号(文学与传媒学院)',\n",
       "    'location': '113.676866,23.631736',\n",
       "    'distance': '263.674',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP838K',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路25',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼3号(外国语学院)',\n",
       "    'location': '113.677247,23.630947',\n",
       "    'distance': '275.62',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJLW0O9',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路4附近',\n",
       "    'poiweight': '0.191645',\n",
       "    'name': '中山大学南方学院西区饭堂',\n",
       "    'location': '113.676210,23.632177',\n",
       "    'distance': '316.572',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKPXMCN',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191739',\n",
       "    'name': '中山大学南方学院音乐系',\n",
       "    'location': '113.678792,23.635389',\n",
       "    'distance': '316.942',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJBZLYT',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路与博学路交叉口东南50米',\n",
       "    'poiweight': '0.297382',\n",
       "    'name': '铜像广场',\n",
       "    'location': '113.676921,23.634555',\n",
       "    'distance': '326.444',\n",
       "    'tel': [],\n",
       "    'type': '风景名胜;风景名胜;风景名胜'},\n",
       "   {'id': 'B0FFG8CSEK',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.185371',\n",
       "    'name': 'L5员工宿舍',\n",
       "    'location': '113.682583,23.631487',\n",
       "    'distance': '356.923',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKPXO2S',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.188247',\n",
       "    'name': '中山大学南方学院医务室',\n",
       "    'location': '113.679394,23.635924',\n",
       "    'distance': '372.556',\n",
       "    'tel': [],\n",
       "    'type': '医疗保健服务;医疗保健服务场所;医疗保健服务场所'},\n",
       "   {'id': 'B0FFH6K3U9',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇温泉大道882号中大南方H7栋1-5层',\n",
       "    'poiweight': '0.254885',\n",
       "    'name': '广州中大南方招待所',\n",
       "    'location': '113.676330,23.631332',\n",
       "    'distance': '331.438',\n",
       "    'tel': '020-61787222',\n",
       "    'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "   {'id': 'B0FFHHLMF8',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院明辩路2号第三饭堂',\n",
       "    'poiweight': '0.178935',\n",
       "    'name': '茗语轩餐厅',\n",
       "    'location': '113.681901,23.634495',\n",
       "    'distance': '341.332',\n",
       "    'tel': '13929501395;13533390928',\n",
       "    'type': '餐饮服务;中餐厅;中餐厅'},\n",
       "   {'id': 'B0FFLJV996',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286264',\n",
       "    'name': '保利桃花源66BLOCK',\n",
       "    'location': '113.682954,23.631008',\n",
       "    'distance': '412.208',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0FFKPXY26',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速公路',\n",
       "    'poiweight': '0.21826',\n",
       "    'name': '中山大学南方学院聚贤楼5号',\n",
       "    'location': '113.680265,23.636313',\n",
       "    'distance': '427.447',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;商务住宅相关;商务住宅相关'},\n",
       "   {'id': 'B0FFGXGN3K',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院',\n",
       "    'poiweight': '0.188657',\n",
       "    'name': '中山大学南方学院宿舍H25',\n",
       "    'location': '113.683474,23.632020',\n",
       "    'distance': '430.984',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用car函数\n",
    "results_car = car(key,car_origin,car_destination)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>020F49F0050461203</td>\n",
       "      <td>113.68,23.634</td>\n",
       "      <td>南</td>\n",
       "      <td>博学路</td>\n",
       "      <td>156.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>020F49F0050462451</td>\n",
       "      <td>113.677,23.6347</td>\n",
       "      <td>东南</td>\n",
       "      <td>中山路</td>\n",
       "      <td>343.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>020F49F006047765</td>\n",
       "      <td>113.682,23.6394</td>\n",
       "      <td>南</td>\n",
       "      <td>S29从莞深高速</td>\n",
       "      <td>807.947</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                  id         location direction      name distance\n",
       "0  020F49F0050461203    113.68,23.634         南       博学路  156.951\n",
       "1  020F49F0050462451  113.677,23.6347        东南       中山路  343.951\n",
       "2   020F49F006047765  113.682,23.6394         南  S29从莞深高速  807.947"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# pandas表格数据化\n",
    "pd.json_normalize(r.json()['regeocode']['roads'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 行政区域查询\n",
    "> * 产品介绍：行政区域查询是一类简单的HTTP接口，根据用户输入的搜索条件可以帮助用户快速的查找特定的行政区域信息。\n",
    "\n",
    "> * url='https://restapi.amap.com/v3/config/district?parameters'\n",
    "> * 必填参数：key； 可选参数见[文档](https://lbs.amap.com/api/webservice/guide/api/district)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [],
   "source": [
    "def area(key,keywords,subdistrict,page,extensions):\n",
    "    area_url='https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params={\n",
    "        \"key\":key,#记得填写！不然会返回INVALID_USERKEY\n",
    "        \"keywords\":keywords,\n",
    "        \"page\":page,\n",
    "        \"extensions\":extensions,\n",
    "        \"subdistrict\":subdistrict\n",
    "    }\n",
    "    r = requests.get(area_url,params=params)\n",
    "    results = r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 数据准备\n",
    "keywords = \"深圳\"\n",
    "subdistrict='1'\n",
    "page='1'\n",
    "extensions='all'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'districts': [{'citycode': '0755',\n",
       "   'adcode': '440300',\n",
       "   'name': '深圳市',\n",
       "   'polyline': '113.823338,22.543809;113.823183,22.543825;113.823087,22.543947;113.823053,22.544077;113.823044,22.544266;113.823087,22.544361;113.823165,22.544433;113.823364,22.544532;113.824022,22.544746;113.824308,22.544851;113.824516,22.544845;113.824628,22.544825;113.824758,22.544703;113.82481,22.544477;113.824793,22.544304;113.824749,22.544195;113.824689,22.544117;113.824498,22.544027;113.823338,22.543809|113.839629,22.498528;113.839274,22.499597;113.839474,22.500666;113.842763,22.503534;113.843496,22.503822;113.844451,22.503352;113.851983,22.496611;113.852139,22.495876;113.851894,22.495297;113.849138,22.491715;113.848161,22.491672;113.84725,22.491941;113.839629,22.498528|113.844477,22.510217;113.843568,22.511037;113.842953,22.511911;113.842512,22.512667;113.842339,22.5136;113.842278,22.51477;113.842538,22.515822;113.844412,22.517083;113.845078,22.517269;113.845659,22.516873;113.848694,22.513574;113.850371,22.513282;113.852664,22.511816;113.856864,22.509579;113.857014,22.504813;113.856797,22.503576;113.855091,22.502835;113.854229,22.503018;113.852439,22.503851;113.850518,22.504822;113.848875,22.506335;113.845879,22.509381;113.844477,22.510217|113.819933,22.396344;113.814185,22.397858;113.810158,22.399158;113.8073,22.400257;113.803992,22.402447;113.802424,22.403814;113.801844,22.404909;113.801784,22.406445;113.801368,22.407368;113.800623,22.407847;113.799393,22.408395;113.798207,22.408976;113.794525,22.410553;113.792239,22.411411;113.788201,22.412353;113.786694,22.413585;113.786278,22.41462;113.786278,22.415992;113.786859,22.417187;113.788219,22.418108;113.790021,22.418652;113.791624,22.418581;113.793123,22.418238;113.79411,22.417451;113.795002,22.416767;113.795921,22.416765;113.797315,22.417753;113.798303,22.419221;113.798571,22.42093;113.798901,22.42249;113.799715,22.423194;113.800902,22.423416;113.80229,22.423531;113.80369,22.423027;113.80449,22.421473;113.804539,22.419969;113.805093,22.418802;113.807015,22.418428;113.808687,22.418907;113.810505,22.420206;113.811241,22.420426;113.812168,22.420314;113.813432,22.419904;113.814281,22.419418;113.814878,22.418228;113.815466,22.417448;113.816246,22.416555;113.81706,22.415922;113.818393,22.412693;113.819128,22.410157;113.821388,22.407419;113.824184,22.404345;113.824781,22.401045;113.824381,22.397939;113.822732,22.396539;113.819933,22.396344|113.751453,22.715403;113.762394,22.736873;113.769371,22.742042;113.775799,22.746051;113.778183,22.747171;113.780662,22.748488;113.78699,22.750586;113.789026,22.751772;113.79083,22.753397;113.792659,22.75608;113.793548,22.757874;113.793961,22.760301;113.794167,22.762212;113.793704,22.764899;113.79248,22.766592;113.791861,22.767651;113.791862,22.768917;113.792429,22.770492;113.793537,22.771782;113.795134,22.773303;113.796603,22.774205;113.798136,22.774681;113.799733,22.775066;113.80066,22.775581;113.801433,22.776329;113.801845,22.777129;113.801974,22.777929;113.801871,22.778833;113.801588,22.779815;113.800764,22.780901;113.800197,22.781832;113.800017,22.782581;113.800069,22.783149;113.800352,22.783743;113.80097,22.784362;113.802258,22.784876;113.802876,22.784979;113.803546,22.784874;113.804241,22.784486;113.805169,22.783554;113.80589,22.782598;113.806302,22.782287;113.806868,22.78208;113.807699,22.782033;113.809438,22.782128;113.810086,22.782191;113.810551,22.782282;113.811038,22.782495;113.812464,22.783349;113.813719,22.784251;113.814428,22.785186;113.814653,22.78596;113.814363,22.786735;113.813237,22.788125;113.812979,22.789062;113.81343,22.790417;113.814782,22.791739;113.816392,22.792284;113.818933,22.792179;113.819649,22.792099;113.819992,22.792082;113.820454,22.792084;113.820844,22.792088;113.821262,22.79214;113.821503,22.792174;113.821823,22.792222;113.822071,22.792267;113.822663,22.792323;113.823231,22.792372;113.823748,22.792471;113.82423,22.792574;113.824494,22.792648;113.824643,22.792731;113.824868,22.792873;113.824913,22.792931;113.826884,22.794862;113.828142,22.795796;113.830938,22.798268;113.831466,22.798529;113.831658,22.798695;113.831865,22.79908;113.832017,22.799235;113.832139,22.799314;113.832534,22.799564;113.832933,22.799817;113.834172,22.799444;113.834232,22.799465;113.83471,22.799751;113.835672,22.800235;113.836524,22.800649;113.837014,22.800847;113.837172,22.800919;113.837232,22.80096;113.837282,22.801067;113.837496,22.801594;113.837699,22.80207;113.838055,22.802918;113.838254,22.803445;113.838537,22.80415;113.838652,22.804294;113.838867,22.804933;113.838874,22.804953;113.838864,22.80496;113.839551,22.806716;113.839871,22.807479;113.840047,22.808028;113.84015,22.808514;113.840184,22.808804;113.840227,22.809053;113.840266,22.809254;113.840286,22.809544;113.840293,22.809709;113.840293,22.809786;113.840094,22.810787;113.840088,22.810825;113.839873,22.811148;113.839653,22.811438;113.839582,22.811474;113.839366,22.811494;113.839344,22.811526;113.839234,22.811704;113.838773,22.811996;113.838584,22.813418;113.838723,22.814896;113.838795,22.816307;113.838722,22.816426;113.838657,22.816562;113.838641,22.816642;113.838644,22.816723;113.838694,22.816979;113.838847,22.817357;113.838589,22.818312;113.838451,22.818575;113.838384,22.818738;113.838351,22.818929;113.838351,22.819039;113.838357,22.819134;113.838384,22.81925;113.838471,22.819357;113.838581,22.81945;113.838664,22.819536;113.838718,22.819607;113.838724,22.819672;113.83867,22.819762;113.838521,22.819889;113.8384,22.819997;113.838306,22.820114;113.838108,22.820307;113.83672,22.821461;113.836401,22.821661;113.836048,22.821808;113.83541,22.821963;113.834904,22.822085;113.834771,22.822138;113.834717,22.822173;113.8347,22.822209;113.834689,22.822259;113.834723,22.822394;113.834771,22.822506;113.834881,22.822691;113.834987,22.822849;113.835111,22.822986;113.835344,22.82316;113.835437,22.823206;113.835679,22.823282;113.836013,22.823368;113.836136,22.823419;113.836233,22.823483;113.836366,22.823598;113.836443,22.823696;113.83652,22.823879;113.836599,22.824832;113.836662,22.82521;113.836676,22.825399;113.836628,22.825788;113.836561,22.82611;113.836538,22.82639;113.836538,22.826526;113.836577,22.826667;113.83666,22.826764;113.836984,22.827033;113.837219,22.827239;113.837406,22.827474;113.838026,22.828615;113.838132,22.828773;113.838175,22.828907;113.838235,22.829076;113.838362,22.829443;113.838482,22.829657;113.838595,22.829779;113.838763,22.829907;113.839359,22.830382;113.839362,22.830459;113.839373,22.83048;113.83978,22.830873;113.840857,22.831212;113.8411,22.831411;113.841015,22.832624;113.841369,22.833804;113.841514,22.833995;113.842293,22.833743;113.842746,22.833696;113.845222,22.834428;113.845776,22.835006;113.846286,22.835352;113.848166,22.836121;113.849467,22.836443;113.850591,22.836844;113.851285,22.837485;113.851889,22.837164;113.853042,22.836358;113.853642,22.835597;113.854428,22.835214;113.856192,22.835683;113.856849,22.833786;113.85706,22.832613;113.857522,22.832622;113.859399,22.833454;113.859899,22.833852;113.860986,22.834154;113.861093,22.834081;113.86135,22.833237;113.861715,22.833219;113.861812,22.833361;113.861733,22.834063;113.86191,22.834659;113.862114,22.834833;113.862503,22.834911;113.863383,22.835672;113.863743,22.836072;113.863908,22.836723;113.864031,22.836853;113.864224,22.836916;113.864387,22.836968;113.865407,22.836892;113.866262,22.836659;113.866824,22.836889;113.867866,22.837169;113.868408,22.837314;113.870787,22.836986;113.871704,22.837063;113.871754,22.837071;113.871808,22.837077;113.871835,22.837081;113.871896,22.83709;113.871916,22.837093;113.871996,22.837103;113.872409,22.837178;113.872635,22.837277;113.872708,22.837517;113.872333,22.839957;113.872386,22.840524;113.872543,22.840702;113.872788,22.840713;113.873399,22.840067;113.873567,22.84003;113.873595,22.840138;113.871433,22.843118;113.870998,22.845658;113.871776,22.845417;113.873416,22.845475;113.873905,22.845017;113.87375,22.844075;113.873814,22.843943;113.873968,22.843978;113.874325,22.844569;113.874445,22.845551;113.875429,22.847312;113.876427,22.84811;113.877506,22.851915;113.878027,22.852156;113.878145,22.852307;113.878257,22.852749;113.878199,22.853901;113.87785,22.854253;113.877681,22.854448;113.878206,22.855124;113.878249,22.85518;113.878375,22.855206;113.879938,22.854917;113.879785,22.854606;113.878878,22.854206;113.878669,22.852685;113.878699,22.852414;113.879311,22.852185;113.880202,22.851956;113.880343,22.852014;113.880649,22.853225;113.880427,22.853637;113.880431,22.853813;113.880672,22.853892;113.881766,22.853422;113.881686,22.85318;113.881079,22.852849;113.880993,22.852713;113.880833,22.851786;113.881041,22.85141;113.88265,22.850537;113.882924,22.850474;113.883254,22.850562;113.883437,22.850818;113.883214,22.851312;113.882565,22.851651;113.88258,22.851893;113.882944,22.851991;113.8835,22.851884;113.883663,22.851712;113.883725,22.851383;113.884147,22.851247;113.884291,22.851343;113.884396,22.851461;113.884194,22.852191;113.884442,22.853035;113.884577,22.853073;113.88474,22.852984;113.885088,22.852391;113.885386,22.852406;113.885587,22.852743;113.886067,22.854119;113.886079,22.854281;113.884966,22.855171;113.885028,22.855339;113.885241,22.855339;113.885625,22.855162;113.886781,22.854398;113.887758,22.854696;113.88835,22.855068;113.888759,22.855507;113.888778,22.85576;113.888027,22.856514;113.887304,22.857681;113.886043,22.858799;113.885798,22.858855;113.885802,22.858923;113.886188,22.859045;113.887312,22.858526;113.888697,22.85906;113.88882,22.858929;113.889658,22.859773;113.890538,22.859747;113.890653,22.859899;113.890848,22.86084;113.890745,22.861553;113.891055,22.861748;113.89113,22.860817;113.890967,22.859346;113.890874,22.859195;113.890122,22.859085;113.889872,22.858909;113.889142,22.857896;113.889125,22.857524;113.889243,22.857319;113.889726,22.857075;113.891359,22.856839;113.891886,22.856619;113.892102,22.856963;113.892432,22.857063;113.89276,22.856269;113.892706,22.855929;113.892604,22.85583;113.89285,22.855403;113.893717,22.855062;113.89382,22.855349;113.894094,22.85559;113.894416,22.855563;113.894543,22.854809;113.894838,22.854353;113.89565,22.854213;113.896516,22.854685;113.897708,22.854664;113.898173,22.854809;113.898448,22.855035;113.89858,22.856038;113.899094,22.856649;113.89973,22.8571;113.89949,22.855491;113.89933,22.855197;113.898466,22.854224;113.898075,22.854108;113.896279,22.851512;113.895041,22.850405;113.894861,22.850453;113.894792,22.850732;113.894948,22.8513;113.894886,22.851631;113.89464,22.852048;113.893453,22.853478;113.89308,22.853774;113.892421,22.853834;113.891527,22.853598;113.891368,22.853294;113.891469,22.85199;113.891676,22.85174;113.892103,22.85152;113.892735,22.851642;113.892879,22.851587;113.89308,22.851114;113.892802,22.850334;113.892918,22.850108;113.893243,22.849904;113.893929,22.849891;113.894226,22.849969;113.894492,22.849953;113.894589,22.849861;113.894583,22.849714;113.894395,22.849444;113.89349,22.849409;113.892747,22.848918;113.892723,22.847704;113.892811,22.847425;113.893713,22.846328;113.893921,22.846195;113.894715,22.846331;113.895393,22.845953;113.89564,22.845958;113.895884,22.846149;113.896222,22.846914;113.896346,22.847014;113.896437,22.846942;113.896442,22.846789;113.896154,22.845973;113.896229,22.845802;113.896455,22.845633;113.896739,22.845569;113.897329,22.845109;113.897771,22.845065;113.898477,22.845598;113.898681,22.84559;113.89879,22.845409;113.898637,22.845202;113.898106,22.844863;113.897874,22.844612;113.897599,22.844583;113.897045,22.844261;113.897201,22.843871;113.898111,22.842751;113.899152,22.843557;113.900233,22.844137;113.900397,22.84457;113.900606,22.846122;113.90101,22.846131;113.900685,22.845162;113.900749,22.844525;113.901112,22.844328;113.902926,22.843821;113.903532,22.844042;113.905077,22.845061;113.905311,22.845057;113.905242,22.844776;113.904846,22.844239;113.904017,22.843925;113.903633,22.843648;113.903173,22.842738;113.903228,22.842439;113.903596,22.842351;113.90428,22.842366;113.905494,22.84261;113.905468,22.842495;113.904396,22.842052;113.904354,22.841737;113.904646,22.841186;113.904719,22.840395;113.904868,22.840132;113.906163,22.839788;113.906839,22.840033;113.910798,22.839345;113.911843,22.840033;113.912464,22.840229;113.912869,22.840235;113.913073,22.839918;113.913606,22.839468;113.91397,22.839299;113.914234,22.839351;113.914369,22.839482;113.914393,22.839678;113.914125,22.841009;113.914441,22.841689;113.914632,22.841838;113.914789,22.841652;113.914416,22.841065;113.914365,22.840849;113.914743,22.839509;113.914768,22.839161;113.916577,22.839376;113.91678,22.840687;113.917255,22.841159;113.917506,22.841386;113.918425,22.841817;113.918773,22.842427;113.919239,22.842567;113.919471,22.842139;113.919811,22.841763;113.920077,22.841632;113.920359,22.841638;113.920785,22.841886;113.921008,22.842229;113.922062,22.84309;113.922256,22.843412;113.923237,22.84346;113.923838,22.843346;113.924199,22.842944;113.924537,22.842826;113.925379,22.842976;113.925997,22.843441;113.926269,22.843526;113.926819,22.843341;113.92846,22.843125;113.929447,22.842417;113.929822,22.842298;113.930159,22.84203;113.931815,22.84218;113.933283,22.841913;113.934772,22.84115;113.934851,22.840808;113.934773,22.84073;113.933038,22.841272;113.932197,22.84161;113.931776,22.841779;113.930349,22.841777;113.929997,22.841586;113.929801,22.841583;113.929265,22.841999;113.928223,22.842604;113.92756,22.842746;113.927304,22.842705;113.926456,22.842189;113.925524,22.841895;113.925252,22.841689;113.923556,22.842389;113.922746,22.842444;113.922414,22.842339;113.920664,22.841202;113.92021,22.841081;113.919296,22.841016;113.919143,22.840929;113.918946,22.840528;113.919036,22.840184;113.919808,22.83998;113.920426,22.839961;113.920591,22.839883;113.920551,22.839751;113.919486,22.839785;113.917852,22.84011;113.917651,22.839475;113.917784,22.838773;113.917882,22.837971;113.918532,22.837083;113.918771,22.83702;113.920107,22.836221;113.922189,22.835737;113.922467,22.835777;113.922987,22.83478;113.922854,22.834642;113.922557,22.834652;113.921829,22.835114;113.921421,22.83522;113.919657,22.834579;113.919414,22.83464;113.919276,22.8348;113.919739,22.835225;113.920004,22.835733;113.918096,22.836455;113.917717,22.837355;113.916643,22.838195;113.916351,22.838237;113.916045,22.83815;113.915354,22.837566;113.914928,22.837403;113.913544,22.837175;113.912964,22.837327;113.912024,22.837897;113.911749,22.838516;113.911439,22.838763;113.909968,22.838426;113.908372,22.837889;113.907929,22.837971;113.906985,22.838507;113.906574,22.838567;113.906367,22.838456;113.90616,22.83804;113.906026,22.83802;113.904138,22.83976;113.903951,22.840138;113.902391,22.84021;113.902239,22.838368;113.904275,22.83288;113.905217,22.832624;113.906808,22.832624;113.907796,22.832899;113.908955,22.832669;113.909537,22.832297;113.910019,22.831846;113.910629,22.830889;113.910958,22.829994;113.912524,22.830178;113.913694,22.830132;113.914279,22.830108;113.914432,22.830047;113.914676,22.829684;113.915536,22.829034;113.915832,22.829241;113.916448,22.83004;113.916763,22.830251;113.918098,22.830728;113.920652,22.831312;113.921893,22.831248;113.92281,22.830956;113.924522,22.830579;113.925299,22.830869;113.927379,22.831368;113.928114,22.831739;113.929489,22.832011;113.931288,22.831921;113.935135,22.83245;113.936692,22.832534;113.937684,22.832806;113.937823,22.832713;113.937671,22.831748;113.93761,22.831487;113.937367,22.831232;113.937368,22.831112;113.938015,22.830876;113.939168,22.830678;113.939286,22.830518;113.939574,22.829568;113.939763,22.829301;113.94128,22.828808;113.941989,22.828931;113.942769,22.828817;113.943513,22.828267;113.943749,22.827875;113.944096,22.827695;113.946899,22.827488;113.947595,22.827183;113.947881,22.826863;113.948029,22.825157;113.949247,22.823663;113.950219,22.823069;113.950504,22.822704;113.952589,22.822191;113.954651,22.821031;113.955259,22.820331;113.95558,22.819641;113.95492,22.818701;113.955812,22.81743;113.954979,22.815053;113.956518,22.814313;113.956971,22.814005;113.957135,22.81444;113.957351,22.814676;113.958212,22.814614;113.958638,22.814454;113.958891,22.814254;113.958898,22.813633;113.959066,22.813409;113.96055,22.81313;113.961394,22.813367;113.963094,22.814609;113.964318,22.815641;113.964762,22.815844;113.965173,22.814912;113.965146,22.814725;113.964772,22.814203;113.964867,22.813414;113.966103,22.812431;113.967258,22.812096;113.968169,22.812057;113.968569,22.812179;113.969117,22.812888;113.969466,22.812986;113.970057,22.812906;113.97122,22.812437;113.972348,22.812498;113.972429,22.812453;113.972511,22.812393;113.972585,22.812338;113.972871,22.812078;113.973444,22.811068;113.973739,22.810722;113.974202,22.81057;113.975723,22.810416;113.976374,22.81008;113.9766,22.809846;113.976975,22.809098;113.977034,22.807892;113.977175,22.807371;113.978401,22.806512;113.976174,22.805661;113.975826,22.805581;113.974843,22.80561;113.974203,22.80544;113.973533,22.804936;113.972725,22.803826;113.972266,22.802256;113.972387,22.801775;113.973126,22.800281;113.974996,22.798437;113.974788,22.797806;113.975169,22.797659;113.975497,22.797953;113.975766,22.798343;113.975757,22.799216;113.974922,22.801376;113.974894,22.801521;113.975104,22.801662;113.975826,22.801655;113.975976,22.801556;113.97627,22.800258;113.976418,22.800159;113.976666,22.800193;113.976817,22.800311;113.976875,22.800612;113.977766,22.800792;113.977752,22.800641;113.977328,22.800061;113.977198,22.799375;113.97725,22.799085;113.977522,22.798957;113.977843,22.799121;113.978661,22.800026;113.978679,22.80022;113.978401,22.800919;113.978529,22.801335;113.978854,22.801284;113.97922,22.800687;113.979943,22.800821;113.982021,22.802005;113.982525,22.802743;113.983484,22.802878;113.984145,22.803633;113.984359,22.803753;113.984586,22.803641;113.984596,22.803555;113.984467,22.802184;113.984096,22.800752;113.983807,22.800705;113.983323,22.800995;113.982237,22.800818;113.981128,22.800883;113.980791,22.800559;113.980581,22.80005;113.98059,22.799786;113.980706,22.79963;113.980923,22.799733;113.982493,22.799893;113.984466,22.800293;113.99086,22.800206;113.991041,22.800115;113.990878,22.79891;113.991168,22.795598;113.990961,22.794045;113.991451,22.792451;113.991743,22.791889;113.991957,22.791033;113.992176,22.79054;113.992683,22.789941;113.99287,22.788965;113.992578,22.788372;113.992509,22.787829;113.993939,22.784456;113.993976,22.783087;113.994154,22.782439;113.995423,22.780388;113.995832,22.779201;113.996161,22.778723;113.996691,22.778184;113.996874,22.777166;113.997634,22.776685;113.998433,22.776552;113.998878,22.774824;113.998895,22.774472;113.998739,22.774168;113.997154,22.772701;113.996344,22.772118;113.995853,22.771544;113.995324,22.771284;113.995361,22.770649;113.995927,22.769891;113.996182,22.768705;113.9963,22.768525;113.996976,22.768429;113.997226,22.768289;113.998338,22.76801;113.999871,22.767302;114.000292,22.767287;114.000503,22.767128;114.001028,22.766095;114.001869,22.765132;114.001882,22.764502;114.002059,22.764098;114.002695,22.763616;114.002836,22.763504;114.002991,22.763472;114.003629,22.763661;114.004752,22.764075;114.004846,22.764113;114.005029,22.764167;114.005101,22.76417;114.005281,22.764154;114.005504,22.764141;114.005566,22.764135;114.006286,22.764137;114.006567,22.764125;114.006909,22.763632;114.006956,22.763491;114.007022,22.763375;114.007218,22.763083;114.007281,22.762999;114.007377,22.762859;114.007419,22.762781;114.007491,22.762642;114.007583,22.762421;114.007638,22.762301;114.007691,22.762198;114.007726,22.762151;114.007961,22.761838;114.008249,22.761542;114.008411,22.761417;114.008506,22.761352;114.008551,22.761334;114.008627,22.761336;114.008753,22.761364;114.009062,22.76151;114.009334,22.761672;114.00953,22.761773;114.009742,22.761857;114.009878,22.761889;114.010029,22.761942;114.010106,22.761962;114.01026,22.762001;114.01041,22.762027;114.010628,22.762079;114.010741,22.762116;114.010885,22.762143;114.011006,22.762162;114.011159,22.762156;114.011297,22.762132;114.012651,22.761798;114.012793,22.761763;114.012931,22.761725;114.013048,22.761665;114.013201,22.761582;114.013367,22.761484;114.013555,22.761401;114.013659,22.761324;114.013756,22.761243;114.013858,22.76113;114.013958,22.760987;114.014016,22.760883;114.014074,22.76078;114.014152,22.760671;114.014221,22.760612;114.014296,22.760566;114.014375,22.760534;114.014446,22.760524;114.017251,22.760294;114.017888,22.76024;114.017997,22.760315;114.018079,22.760411;114.018221,22.76059;114.018243,22.760616;114.01856,22.760925;114.018624,22.761021;114.018651,22.761078;114.018799,22.761329;114.018822,22.761357;114.018863,22.761394;114.018919,22.761404;114.020914,22.7615;114.020972,22.761516;114.021146,22.761534;114.021284,22.761557;114.021424,22.761581;114.021512,22.761587;114.021689,22.761624;114.021903,22.761677;114.02207,22.761719;114.022272,22.761766;114.022473,22.761816;114.022599,22.761856;114.022728,22.761909;114.022874,22.761968;114.022987,22.762014;114.02309,22.762065;114.023174,22.762112;114.023259,22.762177;114.023355,22.762272;114.023444,22.762369;114.023575,22.762496;114.023677,22.762579;114.023774,22.762647;114.023861,22.762702;114.023964,22.762757;114.024097,22.762812;114.024305,22.762859;114.024533,22.762889;114.024681,22.762917;114.025011,22.763125;114.025494,22.763426;114.025643,22.763483;114.025706,22.763521;114.025813,22.763573;114.025844,22.763589;114.025859,22.763603;114.025894,22.76366;114.025933,22.763761;114.025952,22.763838;114.025979,22.763955;114.026015,22.764125;114.026039,22.764214;114.026099,22.764416;114.026142,22.764568;114.026172,22.76469;114.026196,22.76477;114.026213,22.764838;114.026217,22.764913;114.026213,22.765021;114.026174,22.765119;114.026137,22.765182;114.026118,22.765271;114.026107,22.765352;114.026121,22.765439;114.026162,22.765525;114.026222,22.765632;114.026316,22.765808;114.026426,22.765971;114.026515,22.766076;114.026636,22.766214;114.026736,22.766314;114.026835,22.766408;114.026915,22.766482;114.026984,22.766533;114.027079,22.766567;114.027185,22.766594;114.027308,22.766601;114.027382,22.766598;114.027438,22.766579;114.027542,22.766516;114.028085,22.766112;114.02814,22.766073;114.028158,22.766031;114.028381,22.765494;114.028493,22.765399;114.028622,22.765278;114.028739,22.76517;114.028816,22.765097;114.028933,22.765018;114.029042,22.764946;114.029164,22.764897;114.029321,22.764862;114.029494,22.764821;114.029806,22.764751;114.02999,22.764694;114.030091,22.764662;114.030222,22.764606;114.030355,22.76453;114.030449,22.764469;114.030556,22.764412;114.030611,22.764389;114.030664,22.764352;114.031002,22.764244;114.031117,22.764366;114.031283,22.764568;114.031416,22.764734;114.031564,22.764935;114.03167,22.765077;114.031808,22.765249;114.031905,22.765369;114.032149,22.766042;114.032122,22.766111;114.032122,22.766179;114.032126,22.766258;114.032131,22.76629;114.032173,22.766297;114.032271,22.766299;114.033993,22.766623;114.034044,22.766653;114.034171,22.766665;114.035217,22.766759;114.035273,22.766768;114.035306,22.766755;114.035342,22.766701;114.035398,22.766587;114.035428,22.766486;114.035454,22.766338;114.035502,22.766177;114.035574,22.76598;114.035668,22.765792;114.035719,22.765644;114.035779,22.765511;114.035837,22.765403;114.035912,22.765277;114.035992,22.765147;114.036066,22.765061;114.036152,22.764977;114.036237,22.76492;114.036342,22.76485;114.036434,22.764784;114.036545,22.764723;114.036748,22.764624;114.036832,22.764583;114.036932,22.764556;114.037063,22.764496;114.037206,22.764429;114.03737,22.764378;114.037532,22.764329;114.037693,22.764299;114.03781,22.76427;114.038108,22.764267;114.039295,22.764256;114.039418,22.764228;114.039507,22.764218;114.039629,22.764227;114.039765,22.764255;114.039847,22.764284;114.03992,22.764333;114.040021,22.764396;114.040196,22.764522;114.040351,22.764635;114.040452,22.764712;114.040547,22.764791;114.040644,22.764876;114.040737,22.764968;114.040874,22.7651;114.040989,22.765217;114.041068,22.765325;114.041174,22.765478;114.041242,22.765586;114.04135,22.765753;114.041458,22.76594;114.041509,22.766067;114.041578,22.766182;114.041644,22.766298;114.041737,22.766415;114.041824,22.766523;114.04189,22.766615;114.041961,22.766679;114.042035,22.766719;114.042163,22.766781;114.042354,22.766841;114.042472,22.766875;114.042628,22.766935;114.042832,22.767023;114.043013,22.767092;114.043153,22.767133;114.043298,22.767164;114.043446,22.767203;114.043597,22.767235;114.043746,22.76727;114.043912,22.767323;114.044084,22.767399;114.044182,22.767444;114.044287,22.767496;114.044498,22.767566;114.044564,22.767585;114.045348,22.769556;114.045389,22.769644;114.04545,22.769788;114.045579,22.77;114.045716,22.770238;114.045852,22.77041;114.046397,22.771096;114.046442,22.771153;114.046543,22.771248;114.046668,22.77132;114.046831,22.771383;114.046936,22.771425;114.047062,22.771453;114.047256,22.771533;114.047434,22.771614;114.047523,22.771656;114.047579,22.771664;114.048442,22.771793;114.048558,22.77182;114.048627,22.771822;114.048727,22.771774;114.049394,22.771449;114.04961,22.771343;114.049714,22.771255;114.049761,22.77118;114.049776,22.770753;114.049822,22.769493;114.049825,22.769414;114.049805,22.769344;114.049775,22.769276;114.0497,22.769161;114.049621,22.769067;114.04953,22.76898;114.04945,22.768915;114.049337,22.768808;114.049171,22.76871;114.049009,22.768617;114.048873,22.768544;114.048766,22.768517;114.048728,22.768496;114.048711,22.768457;114.048714,22.768403;114.048761,22.767959;114.048794,22.767755;114.048821,22.76755;114.048886,22.767306;114.048925,22.767047;114.04898,22.766856;114.049007,22.766771;114.049044,22.766571;114.049077,22.766407;114.049122,22.766261;114.049155,22.766109;114.049175,22.766034;114.049263,22.765863;114.049309,22.765789;114.049372,22.765707;114.049476,22.76563;114.049566,22.765562;114.0497,22.765509;114.04981,22.765479;114.049922,22.765445;114.050104,22.765391;114.050227,22.765339;114.050327,22.765292;114.05039,22.765272;114.050636,22.765169;114.050729,22.765088;114.052127,22.763382;114.052208,22.763282;114.052232,22.76316;114.05223,22.763032;114.052171,22.762728;114.052154,22.762313;114.052153,22.762279;114.052135,22.762121;114.052121,22.762005;114.052089,22.761908;114.052051,22.761717;114.052015,22.761609;114.051984,22.761533;114.051955,22.761418;114.051938,22.761307;114.051919,22.761184;114.051911,22.761056;114.051893,22.76097;114.051875,22.760904;114.05184,22.760849;114.051806,22.760817;114.05172,22.760765;114.050434,22.760014;114.050359,22.759961;114.05024,22.759907;114.050104,22.759859;114.050039,22.759839;114.049916,22.759826;114.049849,22.759806;114.049801,22.759785;114.049745,22.759741;114.049634,22.759587;114.048886,22.758558;114.048841,22.758539;114.048808,22.758501;114.048764,22.758421;114.048713,22.758287;114.048677,22.758171;114.048661,22.758057;114.048648,22.757913;114.048612,22.757763;114.048594,22.757684;114.048575,22.75755;114.048554,22.757401;114.048547,22.757308;114.048537,22.757186;114.048542,22.757101;114.048565,22.75704;114.048609,22.756996;114.048702,22.756946;114.048778,22.756896;114.04908,22.756686;114.049385,22.756464;114.049532,22.75639;114.049657,22.75637;114.052503,22.755863;114.053493,22.755685;114.053577,22.755772;114.053634,22.75585;114.053679,22.755914;114.053707,22.755989;114.053751,22.756076;114.053789,22.756178;114.053831,22.756258;114.053886,22.756318;114.053964,22.756365;114.054028,22.756389;114.054094,22.756397;114.054187,22.756419;114.054284,22.756441;114.05437,22.756466;114.054442,22.756481;114.054543,22.756487;114.054617,22.756509;114.054705,22.75654;114.054826,22.756588;114.054954,22.756624;114.055036,22.756653;114.055129,22.756682;114.055242,22.756716;114.055391,22.756744;114.055482,22.756757;114.05556,22.756763;114.055998,22.756722;114.056459,22.75668;114.056494,22.756676;114.056509,22.756633;114.056846,22.755682;114.056974,22.755416;114.057022,22.755315;114.057098,22.755091;114.057143,22.754957;114.057197,22.75484;114.057233,22.754771;114.057303,22.754689;114.057397,22.754598;114.057539,22.754509;114.057676,22.754415;114.057803,22.754345;114.057926,22.754266;114.058071,22.754181;114.058207,22.754081;114.058347,22.753986;114.058443,22.753936;114.05856,22.753907;114.058634,22.753861;114.058681,22.753835;114.058736,22.753836;114.058803,22.753851;114.058938,22.75387;114.058972,22.753889;114.05907,22.753954;114.059213,22.754047;114.059324,22.754142;114.059392,22.754206;114.059455,22.754273;114.059507,22.754341;114.059544,22.754417;114.059599,22.754531;114.059644,22.754653;114.059698,22.754842;114.059716,22.754912;114.059742,22.754999;114.059778,22.755046;114.05985,22.755077;114.059922,22.755076;114.063438,22.755992;114.06375,22.756212;114.063845,22.756221;114.064131,22.756096;114.064579,22.755902;114.064607,22.755848;114.064652,22.755723;114.064666,22.755642;114.064673,22.755583;114.064679,22.755502;114.064683,22.755446;114.064658,22.755398;114.064583,22.755322;114.064512,22.755237;114.064609,22.75259;114.064619,22.752446;114.064619,22.752383;114.064613,22.752232;114.064591,22.752077;114.064574,22.752008;114.06455,22.751906;114.064517,22.751794;114.064473,22.751687;114.064431,22.751614;114.064377,22.751554;114.064296,22.751506;114.064222,22.751468;114.064109,22.751434;114.064018,22.751425;114.063758,22.751373;114.063613,22.751345;114.063425,22.749578;114.066188,22.747981;114.069001,22.749662;114.070795,22.749124;114.072388,22.746395;114.07249,22.742293;114.074815,22.740887;114.075767,22.742283;114.079498,22.745324;114.081242,22.745996;114.080996,22.747182;114.080992,22.747244;114.081002,22.74733;114.081007,22.747404;114.081007,22.747481;114.081028,22.747547;114.081055,22.747597;114.082147,22.748631;114.082218,22.748736;114.082408,22.748972;114.082523,22.749114;114.082675,22.749226;114.082864,22.74936;114.083127,22.749543;114.083236,22.749618;114.083355,22.749739;114.083443,22.749834;114.083591,22.749936;114.083756,22.750094;114.083926,22.750215;114.084178,22.750398;114.084295,22.750496;114.084361,22.750544;114.084394,22.750565;114.084421,22.750563;114.084506,22.750493;114.084751,22.750303;114.084996,22.750087;114.085196,22.749894;114.085368,22.749744;114.085538,22.749641;114.085741,22.749508;114.085875,22.749409;114.085999,22.7493;114.086133,22.749186;114.086316,22.749043;114.086426,22.748954;114.086507,22.748875;114.086578,22.748854;114.08668,22.74884;114.086843,22.748829;114.086973,22.748818;114.087141,22.748815;114.087313,22.748822;114.087575,22.748843;114.087782,22.74887;114.087979,22.748912;114.088118,22.748948;114.088299,22.749022;114.088475,22.749099;114.088645,22.749184;114.088786,22.749234;114.088878,22.74927;114.088969,22.749301;114.089907,22.749535;114.089949,22.749545;114.090025,22.749501;114.090212,22.74936;114.091846,22.748521;114.092829,22.748016;114.092845,22.747971;114.092834,22.747926;114.092779,22.74785;114.092726,22.747793;114.092629,22.747721;114.092541,22.747674;114.092408,22.747633;114.091896,22.74721;114.091696,22.746968;114.092149,22.746049;114.096174,22.746427;114.096843,22.746579;114.098468,22.747191;114.09868,22.746904;114.098831,22.746476;114.098743,22.745294;114.098016,22.743354;114.098099,22.743135;114.100281,22.741275;114.100827,22.739117;114.101036,22.73781;114.100824,22.73654;114.099404,22.735648;114.102837,22.731379;114.104202,22.731652;114.104377,22.731608;114.105225,22.730965;114.107179,22.723001;114.10812,22.722709;114.110533,22.72243;114.111273,22.721954;114.111759,22.721434;114.113366,22.72103;114.113924,22.721152;114.114177,22.721454;114.11459,22.722321;114.115443,22.722982;114.117636,22.723253;114.117602,22.72315;114.119696,22.7196;114.121241,22.718681;114.121553,22.718003;114.121889,22.717515;114.12203,22.7165;114.121978,22.716257;114.123011,22.71568;114.123559,22.715202;114.123856,22.715117;114.124559,22.715217;114.125068,22.715924;114.125081,22.715949;114.125085,22.715949;114.125689,22.716788;114.127541,22.716924;114.129516,22.716763;114.12981,22.716658;114.129998,22.71646;114.130194,22.716042;114.130641,22.714844;114.131077,22.714112;114.131449,22.713685;114.131754,22.713484;114.135335,22.712101;114.136174,22.712677;114.137297,22.714499;114.13717,22.715703;114.137308,22.716326;114.138019,22.71634;114.139418,22.716152;114.144664,22.714183;114.144529,22.710493;114.143147,22.709684;114.1431,22.709372;114.143182,22.708897;114.143837,22.707638;114.144572,22.706727;114.144788,22.706575;114.145736,22.706417;114.145977,22.706166;114.146016,22.705977;114.145939,22.705493;114.145449,22.704262;114.144627,22.70275;114.144565,22.702251;114.144658,22.701695;114.145058,22.701176;114.146706,22.700361;114.147643,22.700151;114.148346,22.700095;114.149416,22.699733;114.149881,22.699452;114.150604,22.697374;114.151939,22.695352;114.15206,22.694601;114.152656,22.693153;114.152914,22.692108;114.15287,22.691841;114.151782,22.690136;114.158826,22.685945;114.159504,22.685514;114.160101,22.685006;114.161121,22.685228;114.161626,22.685275;114.163618,22.682723;114.164345,22.682341;114.164397,22.682314;114.164516,22.682251;114.164568,22.682223;114.167437,22.680697;114.168139,22.679841;114.168155,22.679804;114.168169,22.679694;114.168176,22.679651;114.168231,22.678779;114.166518,22.678713;114.166337,22.678352;114.166861,22.676661;114.167137,22.675043;114.167535,22.674458;114.167595,22.673681;114.167435,22.672918;114.167419,22.672873;114.167396,22.672744;114.167391,22.672729;114.16639,22.670761;114.166207,22.670672;114.164741,22.667501;114.164463,22.666418;114.163901,22.665376;114.163768,22.665286;114.163489,22.665302;114.163094,22.665767;114.162621,22.667102;114.162151,22.667311;114.161211,22.668081;114.160496,22.668848;114.157725,22.668181;114.155467,22.668934;114.155333,22.668839;114.155308,22.668561;114.155456,22.668209;114.15394,22.663956;114.153983,22.663856;114.154538,22.663574;114.154696,22.663324;114.154707,22.663069;114.154585,22.662639;114.153877,22.661592;114.153621,22.661344;114.153563,22.660691;114.155026,22.660259;114.155639,22.661701;114.156153,22.663953;114.156532,22.664114;114.157018,22.664172;114.15703,22.663952;114.157153,22.66162;114.157386,22.661499;114.15796,22.661687;114.159027,22.66288;114.159506,22.663949;114.159911,22.665109;114.160192,22.665319;114.160829,22.664996;114.161311,22.663942;114.162696,22.661043;114.162065,22.659776;114.161079,22.659039;114.160849,22.6574;114.162519,22.656814;114.164252,22.657161;114.164531,22.657467;114.16459,22.658312;114.164204,22.659129;114.164576,22.660369;114.164448,22.661333;114.164502,22.661609;114.164724,22.661696;114.165153,22.661685;114.16562,22.661997;114.167052,22.662559;114.167755,22.662591;114.168066,22.662451;114.168266,22.662192;114.168619,22.660499;114.170123,22.659246;114.17032,22.658599;114.170544,22.658249;114.170083,22.657957;114.16932,22.656774;114.169383,22.656448;114.169988,22.655716;114.172525,22.654395;114.176169,22.65421;114.179126,22.656136;114.180171,22.658011;114.181173,22.659663;114.181272,22.660422;114.181956,22.662294;114.182089,22.662996;114.182795,22.663902;114.183192,22.664439;114.184654,22.664516;114.185831,22.664724;114.187214,22.665888;114.187518,22.66629;114.187511,22.666377;114.186705,22.667102;114.186447,22.66755;114.18625,22.668149;114.186337,22.668324;114.18653,22.66967;114.185804,22.669994;114.186556,22.672213;114.18719,22.673238;114.187496,22.673556;114.189243,22.674841;114.18973,22.675115;114.190299,22.67527;114.190655,22.67556;114.19085,22.675897;114.190842,22.676648;114.190988,22.677005;114.195357,22.680077;114.195892,22.680986;114.196545,22.681804;114.197154,22.682361;114.197147,22.682854;114.196847,22.683234;114.195786,22.683707;114.19349,22.68444;114.192619,22.683729;114.191051,22.687939;114.191484,22.688715;114.191919,22.688959;114.193566,22.688735;114.194237,22.688357;114.195101,22.688044;114.197115,22.68815;114.197192,22.689611;114.198956,22.694086;114.198971,22.695011;114.198791,22.695485;114.198709,22.696192;114.197955,22.696101;114.197501,22.696191;114.197299,22.696436;114.197233,22.696843;114.198435,22.699272;114.198773,22.700326;114.199291,22.700874;114.199489,22.702032;114.199048,22.704365;114.199089,22.705527;114.198924,22.706362;114.198686,22.706742;114.198374,22.706926;114.197144,22.707299;114.196843,22.707604;114.196552,22.708384;114.196802,22.709424;114.196718,22.710233;114.199984,22.713006;114.200553,22.713039;114.201431,22.713529;114.201651,22.713713;114.202665,22.715164;114.203307,22.715608;114.203974,22.715709;114.205027,22.715604;114.205865,22.715328;114.206294,22.714338;114.206418,22.714189;114.206637,22.714125;114.207385,22.714283;114.208066,22.714666;114.209268,22.719031;114.208904,22.719362;114.208664,22.719816;114.208487,22.72058;114.208524,22.721305;114.208419,22.72254;114.208417,22.722622;114.208415,22.722731;114.208409,22.722815;114.208249,22.724265;114.208651,22.726544;114.208505,22.727979;114.208574,22.728564;114.208524,22.729243;114.208599,22.729431;114.209476,22.730652;114.209675,22.731138;114.210144,22.731532;114.210352,22.731828;114.210606,22.731977;114.211423,22.732057;114.211514,22.732134;114.21174,22.732561;114.211923,22.73344;114.212125,22.733727;114.213692,22.734362;114.213932,22.734607;114.215673,22.735569;114.215361,22.737329;114.215196,22.737831;114.215581,22.738727;114.215561,22.739414;114.213284,22.741607;114.212504,22.742948;114.211856,22.743583;114.211385,22.743751;114.209993,22.743941;114.209129,22.744223;114.208744,22.744488;114.208337,22.745776;114.209205,22.74676;114.20923,22.747212;114.209349,22.748448;114.209972,22.749209;114.210497,22.750159;114.210044,22.750864;114.209738,22.751153;114.206483,22.752432;114.205503,22.75259;114.205079,22.751223;114.204213,22.750954;114.204125,22.751052;114.203114,22.755138;114.203289,22.755273;114.203645,22.755191;114.203818,22.755241;114.205702,22.756442;114.206077,22.756471;114.20657,22.757246;114.206528,22.757676;114.206308,22.758054;114.205649,22.758644;114.204373,22.759126;114.204002,22.759123;114.203637,22.758979;114.203182,22.758591;114.202514,22.758605;114.201884,22.759161;114.200411,22.759981;114.199785,22.760472;114.199743,22.760567;114.200427,22.763267;114.201064,22.764771;114.200402,22.765649;114.199003,22.765893;114.198644,22.76586;114.198035,22.765686;114.197572,22.765336;114.197414,22.765051;114.197095,22.764936;114.196709,22.765049;114.196424,22.765367;114.196073,22.765535;114.195593,22.765665;114.195069,22.765639;114.193571,22.765218;114.192399,22.764612;114.190419,22.764177;114.188947,22.763693;114.188804,22.763662;114.188759,22.763653;114.188106,22.76357;114.186944,22.76375;114.186402,22.764195;114.185677,22.764547;114.185023,22.76517;114.18354,22.764617;114.182574,22.764813;114.182051,22.765277;114.182341,22.766757;114.182225,22.767893;114.182219,22.767928;114.182239,22.767996;114.182291,22.76807;114.18264,22.768418;114.183226,22.768659;114.184708,22.768646;114.185063,22.768474;114.185262,22.768229;114.186155,22.768128;114.187035,22.768525;114.187144,22.768568;114.187216,22.768595;114.187603,22.768871;114.187804,22.769858;114.188004,22.770389;114.187111,22.771704;114.185983,22.772022;114.185754,22.772804;114.184239,22.772915;114.182947,22.773716;114.182704,22.77463;114.182654,22.775487;114.181694,22.776316;114.181446,22.776411;114.181077,22.77624;114.180856,22.775955;114.180833,22.775713;114.181079,22.774684;114.181107,22.774057;114.181844,22.773062;114.182121,22.772297;114.182213,22.772253;114.182096,22.771994;114.181583,22.771576;114.181261,22.771584;114.180655,22.771974;114.179626,22.772984;114.17951,22.7733;114.179489,22.773846;114.17987,22.775384;114.180027,22.77714;114.179477,22.778284;114.179344,22.779162;114.179917,22.779257;114.180694,22.779167;114.183259,22.779696;114.183457,22.779868;114.183546,22.780314;114.185334,22.781811;114.185788,22.783283;114.186706,22.78401;114.188868,22.784922;114.18943,22.785466;114.189992,22.785734;114.192375,22.785745;114.193274,22.785556;114.19559,22.785765;114.196659,22.78568;114.196963,22.785983;114.197646,22.787161;114.198151,22.787487;114.202444,22.788342;114.202651,22.788601;114.203198,22.788944;114.204632,22.789039;114.205419,22.789196;114.207241,22.789782;114.210163,22.792634;114.21134,22.795993;114.212665,22.798202;114.213021,22.798959;114.213011,22.799152;114.211851,22.80027;114.212934,22.802489;114.213611,22.803548;114.214144,22.805063;114.215069,22.80636;114.215644,22.807741;114.216091,22.808173;114.218057,22.809351;114.219442,22.808875;114.220551,22.808241;114.220808,22.808622;114.221171,22.808926;114.222782,22.809886;114.223659,22.810616;114.224021,22.811373;114.224255,22.812783;114.22563,22.813647;114.225816,22.813691;114.227821,22.813473;114.229201,22.812513;114.228938,22.810479;114.229266,22.809016;114.230915,22.807552;114.231769,22.807101;114.231872,22.806421;114.232559,22.804898;114.233243,22.800722;114.233862,22.799471;114.234169,22.798129;114.234149,22.797508;114.233852,22.796341;114.23381,22.794675;114.233809,22.793951;114.234111,22.793387;114.234917,22.792992;114.239933,22.792083;114.240752,22.791476;114.242437,22.791239;114.243597,22.791788;114.244474,22.791535;114.245501,22.790654;114.246572,22.787516;114.250427,22.783308;114.250322,22.782541;114.250586,22.781891;114.250812,22.78166;114.252221,22.781231;114.252829,22.781285;114.25334,22.781607;114.254133,22.782807;114.254463,22.782921;114.255534,22.782889;114.258339,22.782774;114.26,22.781997;114.261434,22.781774;114.264113,22.784457;114.264813,22.784598;114.267798,22.787309;114.268134,22.787754;114.268184,22.787945;114.269311,22.788931;114.26875,22.790144;114.268149,22.791081;114.268186,22.791429;114.26847,22.792097;114.269375,22.792545;114.269559,22.792525;114.272312,22.793201;114.273034,22.793738;114.273333,22.793856;114.27451,22.794021;114.275103,22.794343;114.275975,22.795273;114.276061,22.795459;114.276039,22.795951;114.275626,22.796736;114.275767,22.797321;114.275779,22.797343;114.275807,22.797376;114.27587,22.797451;114.275909,22.797448;114.275946,22.797445;114.275967,22.797451;114.278228,22.798312;114.278841,22.798432;114.279601,22.798917;114.280069,22.799618;114.28287,22.802379;114.282928,22.803605;114.282765,22.804252;114.282749,22.804744;114.282974,22.805287;114.283531,22.806037;114.283981,22.806892;114.284716,22.807968;114.284813,22.808258;114.286905,22.807198;114.288575,22.807386;114.289132,22.807895;114.290333,22.808063;114.291627,22.808597;114.291893,22.808234;114.292779,22.807528;114.29328,22.807287;114.294006,22.806743;114.294851,22.806381;114.294507,22.805691;114.294636,22.805039;114.294319,22.80342;114.295479,22.802789;114.298379,22.802204;114.298517,22.802322;114.305353,22.801708;114.305759,22.801544;114.306119,22.8026;114.307991,22.803456;114.308345,22.803564;114.309594,22.803497;114.311147,22.803571;114.312575,22.802887;114.313002,22.802266;114.313064,22.801725;114.312978,22.800879;114.313078,22.800563;114.314468,22.800142;114.315858,22.800906;114.316454,22.801409;114.316957,22.802398;114.31705,22.802808;114.318241,22.804665;114.318554,22.805768;114.318549,22.806559;114.318676,22.806788;114.318947,22.806851;114.320654,22.806509;114.324065,22.804828;114.327505,22.805271;114.328204,22.805621;114.329309,22.806348;114.329946,22.807393;114.330114,22.808594;114.330515,22.809268;114.332687,22.809183;114.332731,22.809181;114.332881,22.809175;114.332925,22.809173;114.333015,22.80917;114.333075,22.809167;114.333209,22.809162;114.333269,22.80916;114.335301,22.808987;114.337324,22.809485;114.339674,22.809607;114.340041,22.809748;114.340395,22.810018;114.341594,22.809898;114.342076,22.809573;114.342774,22.808844;114.343148,22.808668;114.345332,22.808506;114.346376,22.808992;114.347873,22.809191;114.348067,22.809052;114.34859,22.808225;114.349321,22.807413;114.34959,22.806772;114.349788,22.806552;114.350237,22.80643;114.350822,22.806592;114.352342,22.806703;114.353164,22.806624;114.353296,22.806495;114.353505,22.80582;114.353514,22.805312;114.353367,22.804583;114.353137,22.80401;114.352827,22.803745;114.351616,22.803384;114.351196,22.802929;114.350159,22.799478;114.35,22.799331;114.350013,22.799137;114.350726,22.797559;114.35171,22.797232;114.351839,22.796458;114.351959,22.795332;114.351846,22.792257;114.351121,22.789689;114.349697,22.789193;114.348201,22.78838;114.347484,22.788209;114.346499,22.78813;114.34565,22.787514;114.345607,22.787459;114.345504,22.787388;114.345294,22.78723;114.344259,22.785606;114.342751,22.784436;114.342622,22.783969;114.342607,22.783698;114.342733,22.783653;114.343671,22.782562;114.344063,22.781829;114.34418,22.781511;114.344389,22.779814;114.345104,22.778971;114.346293,22.777904;114.347839,22.77742;114.348184,22.777481;114.34951,22.778385;114.350001,22.778523;114.350441,22.778522;114.354111,22.778147;114.35428,22.778053;114.355212,22.776987;114.356504,22.774301;114.356472,22.773488;114.356223,22.772795;114.356196,22.772481;114.356228,22.772059;114.356363,22.771748;114.356577,22.768719;114.356215,22.767092;114.355826,22.76637;114.355784,22.765796;114.355969,22.764906;114.356472,22.764655;114.358681,22.763771;114.359334,22.763654;114.359913,22.763671;114.361672,22.764193;114.363173,22.765062;114.364951,22.765681;114.365632,22.766058;114.366229,22.766218;114.3668,22.766251;114.367812,22.766032;114.368129,22.765882;114.368836,22.764967;114.36923,22.764656;114.370069,22.764527;114.370835,22.764277;114.371655,22.763752;114.372186,22.763586;114.3753,22.76293;114.375457,22.762892;114.375488,22.762885;114.376627,22.762617;114.376999,22.762452;114.379641,22.760994;114.379727,22.760941;114.379809,22.760881;114.379873,22.760835;114.379948,22.760794;114.380011,22.760734;114.380083,22.76066;114.380236,22.760507;114.380356,22.760381;114.380439,22.760292;114.380538,22.760204;114.380697,22.760129;114.380811,22.76008;114.380906,22.760032;114.380998,22.76;114.38108,22.759969;114.38116,22.759948;114.381269,22.759923;114.381428,22.759896;114.381458,22.759587;114.381958,22.759584;114.38212,22.759771;114.382226,22.75975;114.382361,22.759734;114.382542,22.759733;114.382653,22.759731;114.382723,22.759725;114.382826,22.759704;114.382902,22.759694;114.382988,22.759682;114.383083,22.75967;114.383161,22.759656;114.383268,22.759649;114.383432,22.759631;114.383582,22.759618;114.383683,22.759615;114.383792,22.759613;114.383999,22.759607;114.384166,22.759608;114.384289,22.759603;114.38447,22.759595;114.384652,22.759583;114.38478,22.759571;114.385972,22.759601;114.386048,22.759616;114.386204,22.759611;114.386316,22.759598;114.386446,22.759546;114.38661,22.75947;114.386695,22.759437;114.386756,22.759402;114.386797,22.759356;114.386822,22.759266;114.386839,22.759149;114.386867,22.759066;114.38688,22.758976;114.386888,22.758847;114.38689,22.758811;114.38689,22.758802;114.386893,22.758694;114.386896,22.758619;114.38691,22.758545;114.386937,22.758464;114.38697,22.758384;114.387007,22.758333;114.387383,22.757804;114.387576,22.75753;114.387632,22.757526;114.388546,22.756928;114.393346,22.759079;114.393464,22.759136;114.393562,22.759191;114.393635,22.759231;114.393724,22.75928;114.393794,22.759329;114.393883,22.75935;114.393918,22.759366;114.393935,22.759374;114.394006,22.759409;114.394141,22.759458;114.394274,22.759515;114.394366,22.759555;114.394439,22.759594;114.394521,22.759641;114.394599,22.759685;114.394696,22.759734;114.394774,22.759767;114.394836,22.759786;114.395003,22.760382;114.394988,22.760448;114.395454,22.762583;114.395675,22.763594;114.396023,22.76519;114.396129,22.765677;114.395749,22.767228;114.395649,22.767912;114.39543,22.76864;114.395459,22.769173;114.395372,22.769631;114.395198,22.770089;114.395218,22.771118;114.395128,22.771501;114.395267,22.771584;114.395375,22.771654;114.395465,22.771718;114.39582,22.773534;114.396013,22.774356;114.396325,22.777322;114.396619,22.777616;114.398002,22.77797;114.399355,22.778854;114.401179,22.779443;114.403313,22.780601;114.404681,22.78132;114.405123,22.781257;114.405308,22.781186;114.405846,22.780719;114.40585,22.780703;114.405859,22.780642;114.405884,22.780562;114.405917,22.78049;114.405997,22.780353;114.40603,22.780266;114.406066,22.780151;114.406094,22.780053;114.406141,22.779938;114.406509,22.779432;114.406819,22.778988;114.407437,22.778508;114.408819,22.777969;114.408916,22.777989;114.409011,22.778001;114.409106,22.778008;114.409181,22.778036;114.409284,22.778053;114.409413,22.778091;114.40949,22.778109;114.409982,22.77802;114.410685,22.777875;114.410959,22.777625;114.411239,22.777299;114.411618,22.776717;114.411771,22.776238;114.412028,22.775435;114.41237,22.774741;114.413004,22.77425;114.413818,22.773776;114.4139,22.773718;114.413947,22.773663;114.414655,22.772478;114.414657,22.772331;114.414684,22.769932;114.414819,22.769533;114.41486,22.769468;114.414902,22.769419;114.414935,22.769363;114.415018,22.769274;114.415099,22.769206;114.415224,22.769109;114.415346,22.769014;114.415427,22.768934;114.41553,22.768866;114.415667,22.768773;114.415784,22.768689;114.415892,22.768576;114.415989,22.768475;114.416081,22.768386;114.416201,22.768309;114.416339,22.76821;114.416461,22.768128;114.416589,22.76804;114.416662,22.767983;114.416754,22.767923;114.416829,22.767864;114.416879,22.767824;114.416912,22.767752;114.416976,22.767661;114.417026,22.767587;114.417076,22.767522;114.417134,22.767442;114.417221,22.767353;114.417299,22.767259;114.417356,22.767199;114.417407,22.76716;114.41749,22.767114;114.417562,22.767056;114.417655,22.766996;114.417724,22.766939;114.41776,22.76691;114.417819,22.766855;114.417871,22.766776;114.417929,22.76671;114.418004,22.766659;114.418052,22.766642;114.418113,22.766584;114.418165,22.76649;114.41821,22.766416;114.418235,22.766333;114.418262,22.766234;114.418289,22.766145;114.418306,22.766059;114.418323,22.765983;114.418321,22.765894;114.418322,22.765827;114.418305,22.76577;114.418275,22.765711;114.418252,22.765683;114.418218,22.765633;114.418154,22.765583;114.418084,22.765532;114.418006,22.765472;114.417919,22.76541;114.417847,22.76535;114.41778,22.765308;114.417727,22.765262;114.417704,22.765231;114.417697,22.765187;114.41769,22.76514;114.41771,22.765095;114.417729,22.765019;114.417767,22.764931;114.417801,22.764821;114.417834,22.764713;114.417861,22.764583;114.417892,22.764493;114.41793,22.764374;114.417958,22.764275;114.417989,22.764176;114.418027,22.764073;114.418054,22.76397;114.418079,22.763869;114.418109,22.76375;114.418154,22.763622;114.418201,22.763428;114.418237,22.763312;114.418275,22.763206;114.418319,22.76304;114.418359,22.762898;114.418391,22.762813;114.418404,22.762719;114.418441,22.762608;114.41848,22.76246;114.418501,22.762361;114.418551,22.762199;114.418595,22.762076;114.418651,22.761939;114.418695,22.761841;114.419121,22.76083;114.419146,22.760769;114.419199,22.760784;114.419252,22.760787;114.419272,22.760785;114.419305,22.760799;114.419319,22.760856;114.41933,22.760935;114.419356,22.761064;114.419392,22.761154;114.419407,22.761238;114.419429,22.761304;114.419455,22.761394;114.419471,22.761467;114.419522,22.761563;114.419552,22.761606;114.419569,22.761658;114.419626,22.761731;114.419639,22.761772;114.419701,22.76187;114.419755,22.761954;114.419813,22.762021;114.419874,22.762069;114.420034,22.762141;114.420174,22.762196;114.420284,22.762229;114.420377,22.762248;114.420491,22.762261;114.42065,22.762269;114.420742,22.762268;114.420836,22.762274;114.420937,22.762275;114.421016,22.762277;114.421119,22.762283;114.421185,22.762288;114.421255,22.762282;114.421332,22.762254;114.421411,22.762222;114.421646,22.762072;114.422706,22.761393;114.4229,22.760584;114.422885,22.760491;114.422854,22.760385;114.422812,22.760278;114.42198,22.760525;114.420789,22.759854;114.421222,22.758816;114.421141,22.758781;114.421079,22.758739;114.421001,22.758695;114.420918,22.75866;114.420829,22.758627;114.420728,22.758576;114.420603,22.758513;114.420454,22.758454;114.420298,22.758373;114.420159,22.758321;114.420064,22.758276;114.419943,22.758234;114.419877,22.758215;114.419771,22.7582;114.419642,22.758182;114.419478,22.758154;114.419344,22.758146;114.419238,22.75813;114.41916,22.758113;114.419065,22.75811;114.418957,22.758106;114.418856,22.758113;114.418737,22.758122;114.418625,22.758121;114.418522,22.758112;114.418397,22.758083;114.418268,22.758072;114.418137,22.758057;114.418068,22.758044;114.417989,22.758045;114.417911,22.758037;114.417828,22.758013;114.417761,22.757981;114.41769,22.757941;114.417627,22.757904;114.417563,22.757842;114.417495,22.757766;114.417476,22.757714;114.417461,22.757651;114.417459,22.757552;114.417466,22.757471;114.417483,22.757378;114.417507,22.757309;114.417569,22.757244;114.417632,22.757214;114.417747,22.757193;114.417847,22.757179;114.417947,22.757178;114.418079,22.757182;114.418157,22.757188;114.418285,22.757174;114.418402,22.757163;114.418506,22.757162;114.418614,22.757164;114.4187,22.75717;114.418789,22.757176;114.418862,22.757181;114.418907,22.757188;114.419029,22.757168;114.419144,22.757141;114.419269,22.757115;114.419374,22.757079;114.419499,22.757051;114.419625,22.757035;114.419718,22.757018;114.419904,22.756963;114.420059,22.756925;114.420166,22.75691;114.420254,22.756898;114.420338,22.756879;114.420408,22.756871;114.4205,22.756857;114.420561,22.756831;114.420608,22.756784;114.420663,22.75669;114.420714,22.756612;114.420736,22.756534;114.420741,22.756463;114.420732,22.756353;114.420731,22.756287;114.420734,22.756202;114.420753,22.756112;114.420764,22.756004;114.420781,22.755921;114.420811,22.755865;114.420828,22.755797;114.420836,22.75565;114.420836,22.755535;114.42083,22.755438;114.420815,22.755343;114.42077,22.75444;114.420759,22.754225;114.42074,22.754169;114.420706,22.754116;114.420633,22.754004;114.420582,22.753932;114.420541,22.753888;114.418991,22.753139;114.418852,22.753049;114.418769,22.752989;114.418659,22.752942;114.418542,22.752882;114.418453,22.752847;114.418367,22.752804;114.418283,22.752785;114.418188,22.752775;114.418009,22.752765;114.417859,22.752751;114.417642,22.752732;114.417437,22.752704;114.417298,22.752684;114.417151,22.752666;114.416949,22.752644;114.416816,22.752622;114.416701,22.752587;114.41661,22.752549;114.416517,22.752534;114.416383,22.752514;114.416266,22.752503;114.416161,22.752485;114.416041,22.752461;114.415895,22.752447;114.415784,22.752446;114.415673,22.752444;114.41558,22.75244;114.415489,22.752441;114.415424,22.752437;114.415363,22.752434;114.414254,22.752385;114.414198,22.752382;114.414147,22.752356;114.414106,22.752324;114.414089,22.752252;114.414068,22.752159;114.414063,22.752071;114.414062,22.751999;114.414051,22.751931;114.414057,22.751874;114.414079,22.75182;114.414104,22.751762;114.414115,22.751731;114.414129,22.751652;114.414151,22.751576;114.414168,22.751522;114.414176,22.751459;114.414189,22.75138;114.414208,22.751304;114.414371,22.749578;114.414375,22.74951;114.414404,22.749411;114.414422,22.749357;114.414453,22.749294;114.414497,22.749173;114.414506,22.749112;114.414508,22.749016;114.414519,22.748921;114.414527,22.748849;114.414544,22.74875;114.414563,22.748664;114.414591,22.748579;114.414609,22.748451;114.414634,22.748345;114.414659,22.748215;114.414695,22.748134;114.414714,22.748051;114.414736,22.747956;114.414766,22.747826;114.414805,22.74775;114.414825,22.747667;114.414853,22.747581;114.414865,22.747469;114.414875,22.74734;114.414899,22.747258;114.415095,22.746786;114.415721,22.745882;114.415924,22.744333;114.415133,22.742154;114.414291,22.740665;114.41391,22.740162;114.413266,22.73836;114.413208,22.737694;114.413344,22.736847;114.413922,22.736248;114.412634,22.735473;114.412126,22.734907;114.411443,22.73366;114.410578,22.733078;114.40889,22.732177;114.407511,22.731094;114.40654,22.727684;114.406996,22.725707;114.405341,22.725859;114.404884,22.72541;114.403596,22.725003;114.403416,22.724598;114.403413,22.72293;114.403552,22.722608;114.404891,22.721474;114.406794,22.718807;114.407391,22.71787;114.407712,22.716123;114.408497,22.71473;114.408596,22.714399;114.409229,22.713577;114.407749,22.711227;114.411983,22.711478;114.413218,22.712186;114.413831,22.712417;114.415507,22.712602;114.416391,22.712573;114.416502,22.71243;114.41654,22.71183;114.417066,22.711649;114.4183,22.712084;114.419101,22.712498;114.420578,22.714017;114.421172,22.713145;114.421179,22.713133;114.421214,22.713066;114.421231,22.713003;114.421249,22.712967;114.421562,22.71236;114.421706,22.711667;114.422972,22.71013;114.423885,22.709398;114.425127,22.708902;114.424178,22.707818;114.423961,22.707487;114.423855,22.707122;114.423861,22.705891;114.423971,22.705522;114.42403,22.704187;114.423974,22.703247;114.424349,22.70249;114.42637,22.699932;114.430466,22.700621;114.433818,22.699811;114.436286,22.697964;114.438216,22.697096;114.439044,22.696896;114.440137,22.696815;114.440651,22.69692;114.44199,22.697567;114.442205,22.696511;114.442462,22.695849;114.443348,22.694698;114.444812,22.692442;114.445342,22.688986;114.444841,22.687686;114.442033,22.683441;114.441644,22.682549;114.441306,22.682192;114.440327,22.681927;114.438151,22.681562;114.437448,22.68154;114.436926,22.681347;114.436809,22.681221;114.436611,22.680111;114.435748,22.679197;114.435086,22.678881;114.434113,22.678156;114.432675,22.677527;114.431391,22.677257;114.430071,22.677353;114.428176,22.676751;114.427905,22.676534;114.427926,22.675636;114.428294,22.674967;114.428662,22.673944;114.428551,22.672424;114.428991,22.671573;114.429055,22.670595;114.429598,22.668761;114.430867,22.667711;114.431705,22.667796;114.432012,22.666891;114.432314,22.665551;114.432018,22.664165;114.432001,22.664089;114.431979,22.664009;114.431917,22.663882;114.43191,22.663864;114.431897,22.663841;114.43185,22.663759;114.431801,22.663668;114.431776,22.663607;114.431748,22.663541;114.431686,22.663482;114.431597,22.66341;114.43148,22.663329;114.431377,22.663272;114.431232,22.663206;114.431143,22.663173;114.430972,22.663098;114.430821,22.663044;114.430728,22.663;114.430644,22.66294;114.430607,22.662879;114.430594,22.662809;114.430603,22.66275;114.430643,22.662597;114.430701,22.662488;114.430729,22.66242;114.43077,22.662308;114.430806,22.662229;114.430874,22.662122;114.430934,22.662015;114.430974,22.661903;114.43101,22.661826;114.431043,22.661777;114.431136,22.661686;114.431204,22.661622;114.431273,22.661548;114.431377,22.661448;114.431446,22.661391;114.431499,22.661351;114.431567,22.661313;114.431619,22.661274;114.431716,22.661189;114.431785,22.661127;114.431867,22.661027;114.431915,22.660964;114.431946,22.660931;114.431988,22.660916;114.432079,22.660917;114.43213,22.66092;114.432209,22.660937;114.432279,22.660974;114.432369,22.661034;114.432441,22.66111;114.432513,22.661174;114.432606,22.66123;114.432723,22.661292;114.432798,22.66133;114.433874,22.661734;114.43395,22.661756;114.434016,22.661776;114.434091,22.66178;114.434162,22.661772;114.434244,22.661769;114.434326,22.661756;114.434408,22.661737;114.434479,22.661729;114.434549,22.66171;114.434621,22.661677;114.434699,22.661665;114.434789,22.661657;114.434884,22.661659;114.434976,22.661662;114.435103,22.661662;114.435231,22.661666;114.435314,22.661667;114.435404,22.661678;114.435483,22.66169;114.43557,22.661712;114.435662,22.661745;114.435748,22.661796;114.435839,22.661853;114.435939,22.661914;114.436092,22.662026;114.436223,22.662119;114.43634,22.662222;114.436486,22.662337;114.436576,22.662412;114.436666,22.662482;114.436784,22.662544;114.436862,22.662563;114.438563,22.663008;114.438655,22.663043;114.438752,22.663054;114.440093,22.66334;114.440197,22.663355;114.440333,22.663364;114.440416,22.663371;114.440509,22.663391;114.440625,22.66342;114.440776,22.663438;114.440879,22.663451;114.440976,22.663467;114.441101,22.663485;114.441212,22.663498;114.441343,22.663505;114.441477,22.663511;114.441621,22.663508;114.441743,22.663513;114.441884,22.66351;114.442084,22.663524;114.44226,22.663536;114.442376,22.663542;114.442465,22.663553;114.442544,22.663563;114.442648,22.663589;114.442732,22.663608;114.442801,22.663634;114.442868,22.663678;114.442923,22.663739;114.442983,22.663819;114.443008,22.663854;114.443061,22.66392;114.443104,22.66399;114.443124,22.664027;114.443136,22.664049;114.446433,22.664871;114.44749,22.665218;114.448609,22.665326;114.44973,22.665311;114.450446,22.666196;114.450443,22.667572;114.451246,22.668362;114.451957,22.669218;114.453043,22.669861;114.453415,22.669963;114.45633,22.669726;114.458202,22.669113;114.459445,22.668199;114.460183,22.667789;114.465322,22.667559;114.466778,22.667642;114.469139,22.667132;114.469745,22.666788;114.471514,22.666236;114.471796,22.665949;114.471954,22.665339;114.472363,22.664601;114.47328,22.664294;114.473698,22.664023;114.473789,22.663958;114.473918,22.663833;114.473954,22.663791;114.473987,22.663767;114.474014,22.663756;114.47405,22.663731;114.474102,22.663705;114.475584,22.662969;114.475715,22.662901;114.475766,22.662879;114.475814,22.662863;114.475879,22.662848;114.475952,22.662836;114.476046,22.662828;114.476224,22.662814;114.476337,22.662809;114.476403,22.662801;114.476467,22.662793;114.476547,22.662785;114.476618,22.662774;114.476679,22.66276;114.476758,22.662736;114.476811,22.662714;114.476893,22.662686;114.476972,22.662651;114.477038,22.662624;114.477095,22.662596;114.477161,22.662552;114.477251,22.662489;114.477314,22.66245;114.477361,22.662408;114.477434,22.662334;114.477497,22.662281;114.477561,22.662221;114.477621,22.662165;114.477636,22.662138;114.477665,22.662093;114.477695,22.662055;114.477742,22.662013;114.4778,22.661957;114.477853,22.661915;114.477901,22.661877;114.477948,22.661846;114.47802,22.661818;114.478074,22.661807;114.478107,22.661801;114.478132,22.661806;114.478177,22.661825;114.478251,22.661875;114.479939,22.662778;114.479981,22.662801;114.480034,22.66284;114.480097,22.662888;114.480148,22.662936;114.480169,22.662981;114.480192,22.663061;114.480203,22.663126;114.480211,22.663271;114.480229,22.663361;114.480254,22.663443;114.480279,22.663567;114.480301,22.663662;114.480315,22.66375;114.480322,22.663773;114.480333,22.663816;114.480376,22.663966;114.48039,22.664004;114.480392,22.664011;114.48054,22.664297;114.48077,22.664481;114.481065,22.664938;114.481984,22.66815;114.482078,22.668257;114.483949,22.668229;114.485491,22.668525;114.487488,22.669153;114.488141,22.669191;114.489179,22.669076;114.490384,22.669456;114.49205,22.669812;114.493368,22.669926;114.493856,22.669878;114.494294,22.669689;114.495283,22.668836;114.498404,22.669144;114.500292,22.668926;114.503954,22.668914;114.504639,22.668781;114.504648,22.668778;114.504708,22.668759;114.504773,22.668741;114.504813,22.668729;114.504884,22.668714;114.504929,22.66871;114.504964,22.668708;114.505023,22.668691;114.505836,22.668473;114.505896,22.668447;114.50596,22.668409;114.506021,22.668367;114.506075,22.66832;114.506128,22.668267;114.506161,22.668224;114.506192,22.668189;114.506235,22.668153;114.506291,22.668109;114.506329,22.668077;114.506374,22.66804;114.506433,22.667986;114.506482,22.667946;114.506516,22.667911;114.506555,22.667875;114.506599,22.667839;114.506627,22.667815;114.506653,22.667789;114.506689,22.667759;114.506721,22.667733;114.506774,22.667702;114.506814,22.667662;114.506852,22.667626;114.5069,22.667591;114.50695,22.667553;114.506993,22.667517;114.507026,22.667488;114.507088,22.667433;114.507148,22.667379;114.507204,22.667328;114.507266,22.667272;114.507312,22.667233;114.507369,22.667188;114.507409,22.667148;114.507446,22.667101;114.507481,22.667056;114.507525,22.667001;114.50757,22.666954;114.507606,22.666927;114.507675,22.666889;114.507743,22.666848;114.507814,22.666799;114.507882,22.666759;114.507946,22.666712;114.50804,22.666646;114.508106,22.666601;114.508171,22.666555;114.508245,22.666502;114.508301,22.666455;114.508386,22.6664;114.508444,22.666351;114.508523,22.666304;114.50861,22.666254;114.508679,22.666212;114.508747,22.666172;114.508807,22.666139;114.508858,22.666101;114.508935,22.666048;114.508998,22.66601;114.509059,22.665979;114.509118,22.665947;114.509205,22.6659;114.509274,22.665876;114.509328,22.665863;114.509414,22.665856;114.509469,22.665861;114.509529,22.66587;114.509584,22.665887;114.509641,22.665903;114.5097,22.665918;114.509742,22.66593;114.509826,22.665937;114.50993,22.665932;114.510023,22.665915;114.510111,22.6659;114.510185,22.665886;114.510269,22.665864;114.51034,22.665849;114.510401,22.665836;114.510508,22.665817;114.510594,22.665791;114.510657,22.665763;114.510733,22.66573;114.510792,22.665701;114.510849,22.665668;114.510901,22.665617;114.510956,22.665568;114.51101,22.665524;114.511057,22.665481;114.511108,22.665435;114.511139,22.665392;114.511175,22.665368;114.511211,22.66535;114.511268,22.665297;114.511322,22.66525;114.511368,22.665201;114.511415,22.665127;114.511463,22.665053;114.511513,22.664995;114.511539,22.664948;114.511554,22.664871;114.511622,22.664819;114.511673,22.664787;114.511703,22.664747;114.511731,22.664709;114.511763,22.664673;114.511796,22.664622;114.511834,22.664582;114.511884,22.664517;114.511915,22.664472;114.511961,22.664401;114.511989,22.66434;114.51202,22.664275;114.512043,22.664212;114.512065,22.664147;114.512091,22.664079;114.512105,22.664028;114.512115,22.663996;114.512144,22.663936;114.512178,22.663873;114.514487,22.660748;114.513527,22.659996;114.512272,22.658573;114.512186,22.658313;114.511978,22.657693;114.512229,22.656433;114.513068,22.655719;114.513985,22.655423;114.515239,22.655502;114.529791,22.657192;114.545844,22.656228;114.553211,22.656212;114.565848,22.65774;114.576819,22.660829;114.580252,22.661496;114.587457,22.660819;114.593581,22.660145;114.599108,22.658129;114.602883,22.655277;114.604644,22.651585;114.605234,22.647138;114.604644,22.643026;114.603134,22.638748;114.600538,22.634804;114.595757,22.626375;114.592989,22.621173;114.589805,22.617064;114.5867,22.612872;114.583353,22.610357;114.578073,22.60684;114.572291,22.602692;114.565255,22.59381;114.561409,22.588113;114.559061,22.583251;114.558896,22.576372;114.559736,22.573182;114.562412,22.568311;114.565089,22.56428;114.568103,22.560753;114.57254,22.55781;114.574888,22.555711;114.578572,22.553608;114.583514,22.551674;114.589628,22.54974;114.595162,22.548479;114.599353,22.547974;114.605142,22.547514;114.609421,22.547431;114.612017,22.546424;114.614536,22.545169;114.616298,22.542819;114.618061,22.538962;114.619572,22.534266;114.620918,22.530828;114.62461,22.524958;114.627042,22.519928;114.628389,22.513637;114.628466,22.508772;114.627797,22.502983;114.625781,22.498368;114.619317,22.488926;114.616547,22.485736;114.611432,22.482042;114.597171,22.477009;114.585434,22.473408;114.566426,22.468439;114.562865,22.467941;114.559097,22.467907;114.555079,22.467579;114.551312,22.466579;114.549226,22.465747;114.546421,22.462461;114.544914,22.460073;114.543079,22.456009;114.53927,22.449246;114.535341,22.445146;114.531326,22.442724;114.525434,22.440581;114.517656,22.43943;114.506956,22.438581;114.500772,22.439941;114.494172,22.441974;114.489821,22.443665;114.485228,22.446699;114.480289,22.452919;114.476699,22.459135;114.474441,22.46451;114.469674,22.485366;114.468169,22.491409;114.468091,22.495101;114.469095,22.501978;114.469926,22.507638;114.471519,22.513506;114.472099,22.518453;114.471935,22.522227;114.470265,22.526846;114.467591,22.533354;114.464493,22.537809;114.458054,22.545037;114.454296,22.548657;114.449196,22.553532;114.444511,22.556896;114.439738,22.560007;114.437139,22.562613;114.43597,22.564544;114.434713,22.566601;114.433457,22.57088;114.432036,22.576837;114.430693,22.583382;114.427183,22.588796;114.422571,22.592744;114.41612,22.596858;114.410508,22.599545;114.404634,22.601474;114.401197,22.602396;114.398342,22.602858;114.388861,22.602935;114.381896,22.601502;114.378447,22.600102;114.374851,22.598643;114.370402,22.596456;114.364102,22.593384;114.359522,22.591573;114.353515,22.590011;114.347004,22.588677;114.343397,22.588337;114.337094,22.588325;114.330626,22.588899;114.325331,22.588637;114.322141,22.587374;114.319976,22.585382;114.318107,22.583241;114.31689,22.582199;114.315779,22.581408;114.311848,22.578609;114.309823,22.57612;114.308319,22.573172;114.306581,22.570513;114.304851,22.568719;114.303287,22.568083;114.300688,22.567502;114.298551,22.566633;114.296526,22.565301;114.294562,22.563738;114.292425,22.562985;114.289992,22.562808;114.286813,22.562978;114.284216,22.562975;114.280977,22.562857;114.275376,22.562274;114.261053,22.559591;114.259656,22.559204;114.258832,22.55882;114.250321,22.553282;114.24164,22.546016;114.237999,22.542936;114.235485,22.541219;114.232563,22.540043;114.231268,22.540831;114.231068,22.541213;114.23102,22.541309;114.230511,22.543042;114.230964,22.543747;114.230799,22.545741;114.230766,22.545941;114.230163,22.546588;114.22975,22.546906;114.229539,22.547099;114.229408,22.547284;114.22917,22.547848;114.2291,22.547936;114.228994,22.547989;114.228361,22.548008;114.22815,22.548017;114.227823,22.548346;114.22756,22.548481;114.227289,22.548546;114.226656,22.548784;114.226304,22.548961;114.226041,22.549296;114.225939,22.549864;114.225868,22.550081;114.225761,22.55028;114.225519,22.550484;114.225033,22.550786;114.224678,22.551023;114.22447,22.551254;114.223976,22.55179;114.223285,22.552764;114.223007,22.552983;114.222705,22.553054;114.222196,22.552999;114.221927,22.552882;114.221876,22.552545;114.221641,22.552272;114.221082,22.552076;114.22071,22.551935;114.22032,22.55189;114.219809,22.551839;114.218596,22.551723;114.218293,22.551725;114.217929,22.551778;114.217643,22.551874;114.217504,22.55195;114.217019,22.552445;114.216309,22.553269;114.215911,22.553662;114.215651,22.553814;114.215322,22.553947;114.214975,22.553991;114.214507,22.553977;114.213286,22.553739;114.212619,22.553623;114.212359,22.553606;114.212142,22.553615;114.210835,22.55383;114.209414,22.553732;114.207985,22.553596;114.207292,22.55352;114.207032,22.55353;114.206807,22.553584;114.206695,22.553663;114.206548,22.553871;114.206314,22.554331;114.206158,22.55459;114.206037,22.554673;114.205829,22.554751;114.205595,22.554734;114.205214,22.55465;114.204028,22.554192;114.20356,22.554008;114.20324,22.553933;114.203066,22.553902;114.202883,22.5539;114.202754,22.553899;114.202521,22.55398;114.202209,22.554141;114.201941,22.554291;114.201733,22.55435;114.201586,22.554361;114.201456,22.554324;114.201352,22.554255;114.201248,22.554108;114.200893,22.553498;114.200711,22.553288;114.200521,22.553139;114.200295,22.553028;114.20007,22.55294;114.199386,22.552822;114.198875,22.552796;114.198494,22.552816;114.197897,22.552928;114.197447,22.55299;114.19723,22.553007;114.197048,22.552973;114.196823,22.552884;114.196277,22.552449;114.195706,22.551958;114.195507,22.551813;114.195212,22.551704;114.194745,22.551606;114.194537,22.551586;114.194329,22.551604;114.194139,22.551643;114.194009,22.551722;114.193767,22.551926;114.193368,22.552337;114.193109,22.552618;114.19297,22.552681;114.192814,22.552705;114.192641,22.552692;114.192468,22.552625;114.192252,22.5524;114.191966,22.552108;114.191836,22.552016;114.191715,22.551971;114.191585,22.551952;114.191438,22.551946;114.191152,22.551985;114.189139,22.552416;114.188649,22.552449;114.187848,22.552506;114.186797,22.552674;114.186595,22.552588;114.186408,22.552367;114.186202,22.552013;114.186112,22.551754;114.18613,22.551447;114.185995,22.551331;114.185918,22.551318;114.185666,22.551454;114.185301,22.551711;114.184492,22.552141;114.18271,22.552801;114.182626,22.552918;114.182754,22.553378;114.182578,22.554804;114.182573,22.555331;114.182426,22.556155;114.18232,22.556777;114.182161,22.556946;114.180945,22.557268;114.180688,22.557212;114.180412,22.557245;114.179739,22.557245;114.179168,22.557044;114.178236,22.556842;114.17726,22.556905;114.175509,22.556898;114.175138,22.557122;114.174783,22.557436;114.174439,22.55805;114.174222,22.558222;114.173964,22.558376;114.173687,22.558451;114.173305,22.558488;114.1728,22.558514;114.172317,22.558465;114.171984,22.55826;114.17158,22.557871;114.170993,22.557148;114.170581,22.556718;114.170035,22.556441;114.169522,22.55634;114.168954,22.556373;114.168534,22.556422;114.16819,22.556575;114.168033,22.557009;114.167872,22.557163;114.167412,22.55827;114.167094,22.558775;114.166675,22.559093;114.166436,22.559157;114.166078,22.559117;114.165592,22.558891;114.164436,22.557572;114.164003,22.556773;114.16342,22.556178;114.162237,22.554049;114.161077,22.552626;114.160765,22.552309;114.160592,22.552203;114.160445,22.552134;114.160176,22.552056;114.159925,22.552031;114.158349,22.552083;114.157674,22.552074;114.15738,22.552016;114.157155,22.551944;114.157008,22.551819;114.156877,22.551621;114.156774,22.551233;114.156739,22.550866;114.156782,22.54982;114.156774,22.549423;114.156722,22.548961;114.156653,22.548735;114.156583,22.548597;114.156401,22.548399;114.156185,22.548241;114.15602,22.548146;114.155787,22.548121;114.155466,22.548121;114.155293,22.548108;114.155154,22.548056;114.155076,22.548007;114.154999,22.547857;114.154895,22.547545;114.154817,22.5471;114.154747,22.54662;114.154652,22.546297;114.154618,22.546112;114.154609,22.545928;114.154643,22.545405;114.154704,22.544741;114.154764,22.544567;114.154834,22.544469;114.154972,22.544406;114.155345,22.544295;114.155829,22.544214;114.156046,22.544248;114.156098,22.544294;114.156089,22.544391;114.155951,22.544676;114.15583,22.544969;114.155856,22.545138;114.155959,22.545275;114.156167,22.545326;114.156418,22.545298;114.156617,22.545182;114.156721,22.544985;114.156773,22.544477;114.156721,22.543976;114.156661,22.543813;114.156505,22.543694;114.156029,22.543601;114.155535,22.543479;114.155301,22.543331;114.154712,22.542658;114.153751,22.541618;114.153474,22.541305;114.15331,22.540932;114.153223,22.540692;114.153206,22.540501;114.153257,22.540199;114.153483,22.539684;114.153543,22.539549;114.153526,22.539406;114.153491,22.539294;114.153387,22.539217;114.153136,22.539114;114.152089,22.538875;114.151093,22.538672;114.150495,22.538521;114.150131,22.538483;114.149889,22.538487;114.149733,22.538509;114.149647,22.538571;114.149595,22.538668;114.149482,22.538983;114.149387,22.539159;114.149257,22.539268;114.149162,22.539301;114.148893,22.53929;114.148642,22.539273;114.148452,22.539284;114.148183,22.539354;114.148044,22.539385;114.147897,22.539402;114.147768,22.539403;114.147612,22.539386;114.147421,22.539338;114.147274,22.539308;114.147118,22.539319;114.147023,22.539367;114.146936,22.539439;114.14685,22.539543;114.146711,22.539734;114.146676,22.539784;114.146529,22.539941;114.146399,22.540034;114.146252,22.540084;114.146036,22.5401;114.145741,22.540098;114.145455,22.540079;114.145169,22.540116;114.14491,22.540171;114.144373,22.540423;114.143888,22.540628;114.143489,22.540729;114.143022,22.540777;114.142511,22.540736;114.14206,22.540594;114.141627,22.540341;114.141012,22.539884;114.140241,22.53924;114.139808,22.538958;114.139401,22.538809;114.138908,22.538751;114.138353,22.538763;114.138084,22.538828;114.137461,22.538998;114.136759,22.539158;114.136335,22.539189;114.135893,22.539159;114.135503,22.539071;114.135104,22.538847;114.134698,22.538373;114.134221,22.537748;114.13377,22.537351;114.13338,22.537102;114.133025,22.536975;114.132661,22.536895;114.132326,22.53691;114.13222,22.536914;114.132064,22.536921;114.131492,22.537042;114.131059,22.537111;114.13079,22.537081;114.130478,22.537002;114.128736,22.536122;114.128095,22.535754;114.127567,22.535368;114.127124,22.534913;114.126587,22.534249;114.126206,22.533718;114.125616,22.532776;114.125357,22.532438;114.125062,22.532211;114.124698,22.532072;114.124169,22.531944;114.122549,22.531614;114.122072,22.531494;114.121725,22.531306;114.1215,22.531067;114.121326,22.530651;114.121257,22.530145;114.121214,22.529679;114.121006,22.529141;114.120962,22.529054;114.120694,22.528637;114.120494,22.528418;114.120226,22.528232;114.119567,22.527885;114.118752,22.527477;114.11818,22.52722;114.117608,22.526977;114.117274,22.526936;114.116713,22.527048;114.115635,22.52732;114.115032,22.52772;114.114737,22.528107;114.114591,22.528608;114.114601,22.529181;114.114649,22.530064;114.114768,22.531119;114.114823,22.532189;114.114842,22.532803;114.11463,22.533483;114.114268,22.533793;114.113769,22.533842;114.113372,22.53358;114.113054,22.532564;114.112716,22.532019;114.112211,22.531685;114.111554,22.531592;114.110922,22.531717;114.109584,22.532263;114.108715,22.532395;114.107912,22.532324;114.107577,22.532253;114.106988,22.532069;114.105943,22.531799;114.105177,22.531626;114.10392,22.531335;114.102922,22.531218;114.101949,22.531242;114.101292,22.531436;114.10066,22.531777;114.10015,22.532191;114.099228,22.533142;114.098803,22.533502;114.098407,22.533812;114.097759,22.534173;114.097247,22.534405;114.096661,22.534478;114.095871,22.53428;114.095295,22.534087;114.094631,22.533822;114.094111,22.533571;114.093453,22.533067;114.092899,22.532545;114.092335,22.531781;114.091988,22.531204;114.091627,22.530611;114.09125,22.530067;114.090864,22.529672;114.090355,22.529317;114.089683,22.529084;114.088256,22.528711;114.087096,22.528543;114.085683,22.528417;114.084614,22.527973;114.084021,22.527553;114.083571,22.526898;114.083485,22.526113;114.083645,22.525901;114.084284,22.525053;114.08514,22.524345;114.085951,22.523878;114.088176,22.522932;114.089375,22.522123;114.089922,22.521632;114.090344,22.520993;114.090424,22.52032;114.090299,22.519429;114.089922,22.518767;114.089388,22.517975;114.089283,22.51782;114.088507,22.516826;114.087639,22.515901;114.086395,22.514861;114.084294,22.513388;114.083039,22.512701;114.082262,22.512473;114.081577,22.512426;114.080984,22.512585;114.080299,22.512996;114.079201,22.514397;114.078593,22.51484;114.078328,22.515034;114.077566,22.515411;114.077003,22.515486;114.076417,22.515373;114.07601,22.515255;114.075916,22.515228;114.075754,22.515178;114.075636,22.515141;114.075179,22.515;114.074366,22.514822;114.073434,22.514657;114.07284,22.514614;114.072114,22.514473;114.071502,22.514377;114.070951,22.51431;114.070494,22.514222;114.069805,22.514051;114.069123,22.51378;114.068256,22.513208;114.066796,22.51227;114.065367,22.511184;114.064603,22.510546;114.064091,22.50995;114.06362,22.509119;114.062981,22.507825;114.062635,22.506364;114.062556,22.505049;114.062445,22.503628;114.062321,22.502825;114.061899,22.50221;114.061358,22.501621;114.060746,22.501239;114.059979,22.500728;114.058302,22.500008;114.057076,22.499623;114.05595,22.499501;114.054713,22.49961;114.054538,22.49967;114.053793,22.499889;114.051584,22.500891;114.050585,22.501195;114.049238,22.501393;114.048428,22.501512;114.047079,22.501844;114.046012,22.502183;114.044378,22.502453;114.044379,22.502417;114.042107,22.502793;114.037662,22.503288;114.03697,22.503365;114.031872,22.504141;114.030897,22.504277;114.030079,22.504611;114.029105,22.505264;114.026634,22.507951;114.025164,22.509331;114.02405,22.509805;114.010554,22.510247;113.990747,22.510582;113.976539,22.510627;113.966031,22.509719;113.96217,22.507613;113.959143,22.504922;113.957039,22.500555;113.954769,22.490986;113.952674,22.486538;113.951702,22.484892;113.951624,22.48476;113.948979,22.480281;113.946876,22.477341;113.939907,22.471711;113.915741,22.45596;113.900819,22.447487;113.897549,22.444741;113.895494,22.443391;113.89363,22.442718;113.891766,22.442639;113.888594,22.443237;113.885231,22.444549;113.881722,22.446787;113.870001,22.45955;113.866987,22.465257;113.862805,22.475834;113.859377,22.495636;113.860131,22.502008;113.861049,22.504943;113.863751,22.511981;113.864063,22.515981;113.860929,22.526416;113.859683,22.529361;113.856557,22.539622;113.855847,22.541134;113.854756,22.542312;113.85299,22.542864;113.851154,22.542592;113.842894,22.539302;113.839042,22.537965;113.836116,22.538474;113.834696,22.539569;113.834281,22.54133;113.834194,22.544266;113.83461,22.547706;113.835113,22.551227;113.835953,22.553658;113.836706,22.555461;113.838377,22.559316;113.838213,22.562338;113.836707,22.565192;113.832188,22.570234;113.803409,22.593187;113.782291,22.625696;113.773278,22.643229;113.769004,22.654557;113.767002,22.659466;113.765493,22.665759;113.760429,22.678188;113.758357,22.683272;113.753161,22.698521;113.752008,22.705567;113.751453,22.715403',\n",
       "   'center': '114.085947,22.547',\n",
       "   'level': 'city',\n",
       "   'districts': [{'citycode': '0755',\n",
       "     'adcode': '440306',\n",
       "     'name': '宝安区',\n",
       "     'center': '113.828671,22.754741',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440305',\n",
       "     'name': '南山区',\n",
       "     'center': '113.92943,22.531221',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440304',\n",
       "     'name': '福田区',\n",
       "     'center': '114.05096,22.541009',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440308',\n",
       "     'name': '盐田区',\n",
       "     'center': '114.235366,22.555069',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440303',\n",
       "     'name': '罗湖区',\n",
       "     'center': '114.123885,22.555341',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440310',\n",
       "     'name': '坪山区',\n",
       "     'center': '114.338441,22.69423',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440307',\n",
       "     'name': '龙岗区',\n",
       "     'center': '114.251372,22.721511',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440309',\n",
       "     'name': '龙华区',\n",
       "     'center': '114.044346,22.691963',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440311',\n",
       "     'name': '光明区',\n",
       "     'center': '113.935895,22.748816',\n",
       "     'level': 'district',\n",
       "     'districts': []}]}]}"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results_area = area(key,keywords,subdistrict,page,extensions)\n",
    "results_area"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 搜索POI\n",
    "> * 介绍：搜索服务API是一类简单的HTTP接口，提供多种查询POI信息的能力，其中包括关键字搜索、周边搜索、多边形搜索、ID查询四种筛选机制。\n",
    "> * [文档](https://lbs.amap.com/api/webservice/guide/api/search)\n",
    "> * url：https://restapi.amap.com/v3/place/text?parameters\n",
    "> * 必填参数：key，keywords/types"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [],
   "source": [
    "def search(key,keywords,city,citylimit,children,offset,page,extensions,callback=None,output=\"JSON\"):\n",
    "    \"\"\"关键词搜索\"\"\"\n",
    "    search_url = \"https://restapi.amap.com/v3/place/text?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"keywords\":keywords,\n",
    "    \"city\":city,\n",
    "    \"citylimit\":citylimit,\n",
    "    \"children\":children,\n",
    "    \"offset\":offset,\n",
    "    \"page\":page,\n",
    "    \"extensions\":extensions,\n",
    "    \"output\":\"json\"   \n",
    "    }\n",
    "    response = requests.get(search_url,params=params)\n",
    "    results = response.json()\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "metadata": {},
   "outputs": [],
   "source": [
    "#数据准备\n",
    "keywords ='电影'\n",
    "extensions='base'\n",
    "city = '深圳'\n",
    "citylimit='ture'\n",
    "children= \"1\"\n",
    "offset = \"20\"\n",
    "page = \"1\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '381',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': 'B0FFHGDUQL',\n",
       "   'address': '华强北路2009号茂业百货(华强北店)F9层',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '福田区',\n",
       "   'name': '博纳国际影城(茂业百货华强北店)',\n",
       "   'location': '114.086148,22.545984',\n",
       "   'tel': '0755-83019333',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F37WCF9'},\n",
       "  {'parent': [],\n",
       "   'address': '时尚mego新街01号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '福田区',\n",
       "   'name': '正佳国际影城(华新地铁店)',\n",
       "   'location': '114.083871,22.549252',\n",
       "   'tel': '0755-82765351',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIB55XF'},\n",
       "  {'parent': 'B0FFFCRDQX',\n",
       "   'address': '中航路1号中航城天虹L4层L428、L6层',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '福田区',\n",
       "   'name': '卢米埃影院(中航城天虹)',\n",
       "   'location': '114.084183,22.542397',\n",
       "   'tel': '0755-23613657',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGF5TER'},\n",
       "  {'parent': 'B02F309TNR',\n",
       "   'address': '福虹路5号福华大厦2楼(丽呈东谷酒店2楼,福瑞斯酒店正门旁)',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '福田区',\n",
       "   'name': 'EK私人影院(福田店)',\n",
       "   'location': '114.083363,22.538387',\n",
       "   'tel': '0755-23908778;0755-83415678',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGLOTLR'},\n",
       "  {'parent': [],\n",
       "   'address': '燕南路95号(群众艺术馆大楼)',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;影剧院相关',\n",
       "   'photos': [],\n",
       "   'typecode': '080600',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '福田区',\n",
       "   'name': '深圳市文化馆影剧院',\n",
       "   'location': '114.092592,22.547320',\n",
       "   'tel': '0755-83351046;0755-83351043',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F37ULFI'},\n",
       "  {'parent': 'B02F38IZN3',\n",
       "   'address': '深南中路1095新城市广场3F层3001-3004、4F层403-404、5F层501A',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '福田区',\n",
       "   'name': '新南国影城(中信店)',\n",
       "   'location': '114.098415,22.539288',\n",
       "   'tel': '0755-25945588;0755-25943738;0755-25944588',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F37UOAG'},\n",
       "  {'parent': [],\n",
       "   'address': '滨河大道3001号京基御景华城商业广场1层',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '福田区',\n",
       "   'name': '哈艺时尚影城(福田京基店)',\n",
       "   'location': '114.085316,22.533060',\n",
       "   'tel': '0755-33160528',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIS14YE'},\n",
       "  {'parent': 'B0FFG9VUH3',\n",
       "   'address': '红岭中路2061号星光广场3层',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '福田区',\n",
       "   'name': '百汇国际影城(红岭店)',\n",
       "   'location': '114.103787,22.555000',\n",
       "   'tel': '0755-22205709',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGKAFF4'},\n",
       "  {'parent': [],\n",
       "   'address': '深业上城M层',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '福田区',\n",
       "   'name': '英皇·UA电影城',\n",
       "   'location': '114.069507,22.556142',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIRBDU8'},\n",
       "  {'parent': [],\n",
       "   'address': '彩德城CBD一站式购物中心3层',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '福田区',\n",
       "   'name': '中影UL城市影院(彩田店)',\n",
       "   'location': '114.068513,22.542949',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFLKA2G'},\n",
       "  {'parent': 'B02F37WJJG',\n",
       "   'address': '深南东路5016号京基百纳空间F4层L427',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '罗湖区',\n",
       "   'name': 'UA KK Mall',\n",
       "   'location': '114.107107,22.544565',\n",
       "   'tel': '0755-22906680;0755-85111168',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F38JC7N'},\n",
       "  {'parent': 'B0FFIPR2W8',\n",
       "   'address': '上步南路国企大厦B座永辉楼16G',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "   'photos': [],\n",
       "   'typecode': '080000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '福田区',\n",
       "   'name': 'TUTU私人影院',\n",
       "   'location': '114.096879,22.538209',\n",
       "   'tel': '0755-25919956;18200707916',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIGWOCC'},\n",
       "  {'parent': [],\n",
       "   'address': '松园路鸿翔花园2期1层(家乐福后门)',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '罗湖区',\n",
       "   'name': '嘉乐国际影城(鸿翔店)',\n",
       "   'location': '114.106079,22.554692',\n",
       "   'tel': '0755-22900020',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGWLE0Y'},\n",
       "  {'parent': [],\n",
       "   'address': '深南大道2005号OneAvenue卓悦中心西区B2层、4层',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '福田区',\n",
       "   'name': 'CGV影城(深圳卓悦中心店)',\n",
       "   'location': '114.064958,22.535318',\n",
       "   'tel': '0755-29968229',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKYST24'},\n",
       "  {'parent': 'B02F37VU24',\n",
       "   'address': '百花五路长城大厦7栋17-18',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '福田区',\n",
       "   'name': '艺好天影视',\n",
       "   'location': '114.089999,22.551553',\n",
       "   'tel': '15920003031',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFG8ISQM'},\n",
       "  {'parent': 'B02F37VG2D',\n",
       "   'address': '福华一路1号大中华国际交易广场中庭4层',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '福田区',\n",
       "   'name': '保利国际影城(大中华店)',\n",
       "   'location': '114.062392,22.536036',\n",
       "   'tel': '0755-23813990;0755-23813980;18138202081',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F38WWUO'},\n",
       "  {'parent': [],\n",
       "   'address': '滨河大道2001号T-PARK深港影视创意园7楼710单元',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '福田区',\n",
       "   'name': 'MARS迷影荟',\n",
       "   'location': '114.103377,22.534911',\n",
       "   'tel': '18588200046;18018759147',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGODLGX'},\n",
       "  {'parent': 'B0FFJFNND9',\n",
       "   'address': '宝安南路1881号万象城中区F3层S333、363、F4层S433、463',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '罗湖区',\n",
       "   'name': '万象影城(深圳万象城店)',\n",
       "   'location': '114.110371,22.540244',\n",
       "   'tel': '0755-82668355;0755-82668188',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFJXCJQ7'},\n",
       "  {'parent': 'B0FFJFUQ9A',\n",
       "   'address': '福华三路与海田路交叉口卓越INTOWN东区L3层L3',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '福田区',\n",
       "   'name': '盛唐时代国际影城(卓越INTOWN东区)',\n",
       "   'location': '114.064611,22.531254',\n",
       "   'tel': '0755-86933636',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFILK2XA'},\n",
       "  {'parent': 'B02F37SV21',\n",
       "   'address': '福中一路2016号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'cinema',\n",
       "   'cityname': '深圳市',\n",
       "   'type': '体育休闲服务;影剧院;电影院',\n",
       "   'photos': [],\n",
       "   'typecode': '080601',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '福田区',\n",
       "   'name': '嘉之华中心影城(深圳音乐厅店)',\n",
       "   'location': '114.057467,22.546841',\n",
       "   'tel': '0755-82878333;0755-82876333',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F37WNL6'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 63,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results_poi = search(key,keywords,city,citylimit,children,offset,page,extensions,callback=None,output=\"JSON\")\n",
    "results_poi"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### IP定位\n",
    "> * 介绍：IP定位是一个简单的HTTP接口，根据用户输入的IP地址，能够快速的帮用户定位IP的所在位置。\n",
    "> * [文档](https://lbs.amap.com/api/webservice/guide/api/ipconfig)\n",
    "> * url:https://restapi.amap.com/v3/ip?parameters\n",
    "> * 必填参数：key"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "def ip_position(key,output=\"JSON\",ip=None,sig=None):\n",
    "    ip_url = 'https://restapi.amap.com/v3/ip?parameters'\n",
    "    params ={\n",
    "        \"key\":key,\n",
    "        \"output\":\"JSON\",\n",
    "        \"ip\":ip\n",
    "    }\n",
    "    #get方法返回值\n",
    "    response = requests.get(ip_url,params=params)\n",
    "    #json格式返回\n",
    "    results = response.json()\n",
    "    #返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '广东省',\n",
       " 'city': '广州市',\n",
       " 'adcode': '440100',\n",
       " 'rectangle': '113.1017375,22.93212254;113.6770499,23.3809537'}"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results_ip = ip_position(key,ip=None,sig=None)\n",
    "results_ip"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 批量请求接口\n",
    "> * 介绍：批量接口通过用户传入合并后的请求，同时返回多个请求的顺序集合，目前最多支持20个子请求。 返回的顺序与子请求的顺序一致。\n",
    "> * [文档](https://lbs.amap.com/api/webservice/guide/api/batchrequest)\n",
    "> * 批量请求API父请求服务地址：https://restapi.amap.com/v3/batch?key=<用户的key>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [],
   "source": [
    "def interface():\n",
    "    url = 'https://restapi.amap.com/v3/batch?key=<ac1c16d9ba930c1f889b26fb9a392c2f>'\n",
    "    params = {\n",
    "    \"ops\": [ { \"url\": \"/v3/place/around?offset=10&page=1&key=<ac1c16d9ba930c1f889b26fb9a392c2f>&location=116.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "             },\n",
    "            { \"url\": \"/v3/place/around?offset=10&page=1&key=<ac1c16d9ba930c1f889b26fb9a392c2f>&location=118.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\" \n",
    "            }\n",
    "            ]\n",
    "            }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '0', 'info': 'INVALID_BATCH_PARAM', 'infocode': '20005'}"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "request_interface = interface()\n",
    "request_interface"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 受产品策略调整影响，自2020年11月起，建议您不再使用此批量接口。后续平台会逐步废弃并下线此服务。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 静态地图\n",
    "> * 介绍：静态地图服务通过返回一张地图图片响应HTTP请求，使用户能够将高德地图以图片形式嵌入自己的网页中。用户可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形。\n",
    "> * [文档](https://lbs.amap.com/api/webservice/guide/api/staticmaps)\n",
    "> * url:https://restapi.amap.com/v3/staticmap?parameters\n",
    "> * 必填参数：key,zoom,location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [],
   "source": [
    "def map(key,location,zoom,size,scale,traffic,markers=None,labels=None,paths=None,sig=None):\n",
    "    #获取静态地图信息\n",
    "    url='https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "    'key':key,\n",
    "    'location':location,\n",
    "    'zoom':zoom,\n",
    "    'scale':scale,\n",
    "    'markers':markers,\n",
    "    'labels':labels,\n",
    "    'paths':paths,\n",
    "    'traffic':traffic,\n",
    "    'sig':sig\n",
    "    }\n",
    "    r=requests.get(url,params)\n",
    "    data=r.url\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [],
   "source": [
    "#数据准备\n",
    "location='113.679262,23.632583'\n",
    "zoom='17'\n",
    "size='400*400'\n",
    "scale='1'\n",
    "traffic='0'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'https://restapi.amap.com/v3/staticmap?parameters&key=ac1c16d9ba930c1f889b26fb9a392c2f&location=113.679262%2C23.632583&zoom=17&scale=1&traffic=0'"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "static_map = map(key,location,zoom,size,scale,traffic,markers=None,labels=None,paths=None,sig=None)\n",
    "static_map"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> * 网页链接图片：\n",
    "![picture](https://restapi.amap.com/v3/staticmap?parameters&key=ac1c16d9ba930c1f889b26fb9a392c2f&location=113.679262%2C23.632583&zoom=17&scale=1&traffic=0)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 坐标转换\n",
    "> * 介绍：坐标转换是一类简单的HTTP接口，能够将用户输入的非高德坐标（GPS坐标、mapbar坐标、baidu坐标）转换成高德坐标。\n",
    "> * [文档](https://lbs.amap.com/api/webservice/guide/api/convert)\n",
    "> * url:https://restapi.amap.com/v3/assistant/coordinate/convert?parameters\n",
    "> * 必填参数：key,locations"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [],
   "source": [
    "def coordinate(key,locations,coordsys,output='JSON'):\n",
    "    trans_url ='https://restapi.amap.com/v3/assistant/coordinate/convert?parameters'\n",
    "    params={\n",
    "        \"key\":key,\n",
    "        \"locations\":locations,\n",
    "        \"coordsys\":coordsys,\n",
    "        \"output\":\"JSON\"\n",
    "    }\n",
    "    response = requests.get(trans_url,params=params)\n",
    "    results = response.json()\n",
    "    return results\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [],
   "source": [
    "#数据准备\n",
    "locations = '113.679287,23.632575|113.668051,23.600869'\n",
    "coordsys = 'mapbar'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '113.682557237414,23.634005262587;113.671538085938,23.602268066407'}"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "coordinate_transfer = coordinate(key,locations,coordsys,output='JSON')\n",
    "coordinate_transfer"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 天气查询\n",
    "> * 介绍：是一个简单的HTTP接口，根据用户输入的adcode，查询目标区域当前/未来的天气情况。\n",
    "> * [文档](http://lbs.amap.com/api/webservice/guide/api/weatherinfo)\n",
    "> * url:https://restapi.amap.com/v3/weather/weatherInfo?parameters\n",
    "> * 必填参数：key,city"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "def weather(key,city,extensions,output):\n",
    "    weather_url = 'https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "    params ={\n",
    "        \"key\":key,\n",
    "        \"city\":city,\n",
    "        \"extensions\":extensions,\n",
    "        \"output\":\"JSON\"\n",
    "    }\n",
    "    response = requests.get(weather_url,params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "#数据准备\n",
    "city = '440300'\n",
    "extensions = \"all\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'forecasts': [{'city': '深圳市',\n",
       "   'adcode': '440300',\n",
       "   'province': '广东',\n",
       "   'reporttime': '2020-11-16 15:22:20',\n",
       "   'casts': [{'date': '2020-11-16',\n",
       "     'week': '1',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '28',\n",
       "     'nighttemp': '20',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-17',\n",
       "     'week': '2',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '28',\n",
       "     'nighttemp': '21',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-18',\n",
       "     'week': '3',\n",
       "     'dayweather': '小雨',\n",
       "     'nightweather': '小雨',\n",
       "     'daytemp': '27',\n",
       "     'nighttemp': '23',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-19',\n",
       "     'week': '4',\n",
       "     'dayweather': '小雨',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '27',\n",
       "     'nighttemp': '23',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'}]}]}"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "wea_quary = weather(key,city,extensions,output=\"JSON\")\n",
    "wea_quary"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 输入提示\n",
    "> * 介绍：是一类简单的HTTP接口，提供根据用户输入的关键词查询返回建议列表。\n",
    "> * [文档](https://lbs.amap.com/api/webservice/guide/api/inputtips)\n",
    "> * url:https://restapi.amap.com/v3/assistant/inputtips?parameters\n",
    "> * 必填参数：key,keywords"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [],
   "source": [
    "def input(key,keywords,location,citylimit,datatype,type=None):\n",
    "    input_url = 'https://restapi.amap.com/v3/assistant/inputtips?parameters'\n",
    "    params ={\n",
    "        \"key\":key,\n",
    "        \"keywords\":keywords,\n",
    "        \"location\":location,\n",
    "        \"citylimit\":citylimit,\n",
    "        \"datatype\":datatype,\n",
    "        \n",
    "    }\n",
    "    response = requests.get(input_url,params=params)\n",
    "    results = response.json()\n",
    "    return results\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [],
   "source": [
    "#数据准备\n",
    "keywords = \"交通\"\n",
    "location = '113.679287,23.632575'\n",
    "citylimit = \"ture\"\n",
    "datatype = \"all\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': [],\n",
       "   'name': '交通银行',\n",
       "   'district': [],\n",
       "   'adcode': [],\n",
       "   'location': [],\n",
       "   'address': [],\n",
       "   'typecode': [],\n",
       "   'city': []},\n",
       "  {'id': 'B0FFFSNAB9',\n",
       "   'name': '交通银行24小时自助银行',\n",
       "   'district': '广东省广州市白云区',\n",
       "   'adcode': '440111',\n",
       "   'location': '113.286138,23.342861',\n",
       "   'address': '华盛北路与106国道交叉口东150米',\n",
       "   'typecode': '160305',\n",
       "   'city': []},\n",
       "  {'id': 'B00140V6ND',\n",
       "   'name': '交通银行(广州花都支行)',\n",
       "   'district': '广东省广州市花都区',\n",
       "   'adcode': '440114',\n",
       "   'location': '113.230926,23.397200',\n",
       "   'address': '龙珠路32号星缘美居1层',\n",
       "   'typecode': '160108',\n",
       "   'city': []},\n",
       "  {'id': 'B00140MDGM',\n",
       "   'name': '交通银行(广州骏威支行)',\n",
       "   'district': '广东省广州市花都区',\n",
       "   'adcode': '440114',\n",
       "   'location': '113.216753,23.392129',\n",
       "   'address': '公益路1号骏威广场东明楼1层101、102号',\n",
       "   'typecode': '160108',\n",
       "   'city': []},\n",
       "  {'id': 'B00140WE7M',\n",
       "   'name': '交通银行(广州狮岭支行)',\n",
       "   'district': '广东省广州市花都区',\n",
       "   'adcode': '440114',\n",
       "   'location': '113.172612,23.455752',\n",
       "   'address': '狮岭镇宝峰南路2号友田大厦1层',\n",
       "   'typecode': '160108',\n",
       "   'city': []},\n",
       "  {'id': 'B00141IC07',\n",
       "   'name': '交通银行24小时自助银行(狮岭支行)',\n",
       "   'district': '广东省广州市花都区',\n",
       "   'adcode': '440114',\n",
       "   'location': '113.172573,23.455827',\n",
       "   'address': '狮岭镇宝峰南路2号友田大厦1层',\n",
       "   'typecode': '160305',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFGDYP65',\n",
       "   'name': '交通银行(开发区支行)',\n",
       "   'district': '广东省广州市黄埔区',\n",
       "   'adcode': '440112',\n",
       "   'location': '113.436206,23.166769',\n",
       "   'address': '科学大道97号',\n",
       "   'typecode': '160200',\n",
       "   'city': []},\n",
       "  {'id': 'B001423X5L',\n",
       "   'name': '交通银行(广州开发区支行)',\n",
       "   'district': '广东省广州市黄埔区',\n",
       "   'adcode': '440112',\n",
       "   'location': '113.434899,23.165776',\n",
       "   'address': '科学大道97号',\n",
       "   'typecode': '160108',\n",
       "   'city': []},\n",
       "  {'id': 'B001423X5M',\n",
       "   'name': '交通银行24小时自助银行(广州开发区支行)',\n",
       "   'district': '广东省广州市黄埔区',\n",
       "   'adcode': '440112',\n",
       "   'location': '113.434815,23.165786',\n",
       "   'address': '科学大道97号',\n",
       "   'typecode': '160305',\n",
       "   'city': []},\n",
       "  {'id': 'B00140WE9P',\n",
       "   'name': '交通银行(广州经济技术开发区东区支行)',\n",
       "   'district': '广东省广州市黄埔区',\n",
       "   'adcode': '440112',\n",
       "   'location': '113.542697,23.109719',\n",
       "   'address': '经济技术开发区东区开创大道230号首层',\n",
       "   'typecode': '160108',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "input_prompt = input(key,keywords,location,citylimit,datatype,type=None)\n",
    "input_prompt"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 交通态势\n",
    "> * 介绍：是一类简单的HTTP接口，提供根据用户输入的内容能够返回希望查询的交通态势情况。\n",
    "> * 区域可选为[矩形区域](https://lbs.amap.com/api/webservice/guide/api/trafficstatus#rectangle)，[圆形区域](https://lbs.amap.com/api/webservice/guide/api/trafficstatus#circle)和[指定线路](https://lbs.amap.com/api/webservice/guide/api/trafficstatus#road)\n",
    "> * [文档](https://lbs.amap.com/api/webservice/guide/api/trafficstatus)\n",
    "> * url:https://restapi.amap.com/v3/traffic/status/rectangle?parameters  (矩形区域)\n",
    "> * 必填参数：key,rectangle"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [],
   "source": [
    "#以矩形区域为例\n",
    "def traffic(key,level,extensions,rectangle,output = \"JSON\"):\n",
    "    traffic_url= 'https://restapi.amap.com/v3/traffic/status/rectangle?parameters'\n",
    "    params = {\n",
    "        \"key\":key, #记得填写！不然会返回INVALID_USERKEY\n",
    "        \"level\":level,\n",
    "        \"extensions\":extensions,\n",
    "        \"rectangle\":rectangle,\n",
    "        \"output\":\"JSON\"\n",
    "    }\n",
    "    response = requests.get(traffic_url,params)\n",
    "    results = response.json()\n",
    "    return results\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [],
   "source": [
    "#数据准备\n",
    "level = \"5\"\n",
    "extensions =\"base\"\n",
    "rectangle = \"113.679287,23.632575;113.668051,23.600869\" #矩形的左下和右上点坐标"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'info': 'INSUFFICIENT_PRIVILEGES',\n",
       " 'infocode': '10012',\n",
       " 'status': '0',\n",
       " 'sec_code_debug': 'd41d8cd98f00b204e9800998ecf8427e',\n",
       " 'key': 'cd8b199d5fb42d0adf04b4ad25c19f74',\n",
       " 'sec_code': 'd41d8cd98f00b204e9800998ecf8427e'}"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "traffic_situation = traffic(key,level,extensions,rectangle,output = \"JSON\")\n",
    "traffic_situation"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 原因：交通态势接口计划将于2020年12月31日下线，目前不再对新用户开放。"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "279.273px"
   },
   "toc_section_display": true,
   "toc_window_display": true
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
